05 2020 档案
摘要:$ echo hengwei-2018 > a.txt $ echo hengwei_2019 >> a.txt # 1 $ for line in `cat a.txt`; do echo $line; done hengwei-2018 hengwei_2019 # 2 $ while read
阅读全文
摘要:#查看配置 echo $PS1 #修改配置: 删除@cloushell和\w export PS1='\[\e]0;${DEVSHELL_PROJECT_ID:-Cloud Shell}\a\]\u:\[\033[1;34m\]$([[ -n $DEVSHELL_PROJECT_ID ]] && p
阅读全文
摘要:1. cat ~/.bash_history 2. history -w /dev/stdout 3. history | cut -c 8- 4. fc -l -n 1 | sed 's/^\s*//' 5. history|awk '{$1="";print substr($0,2)}'
阅读全文