1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| '$foo' "$foo" echo ${foo}bar history gcc -E a.c > a.i cat a.txt - b.txt python a.py | tee train.log ls | wc ls | head ./gen_rnd.sh | sort -n | uniq cat data.txt | paste -sd+ | bc | factor cat data.txt | python -c "import sys; print(eval('+'.join(sys.stdin.read().split())))" find xargs
xxd
任务管理
./abc & fg fg %2 bg jobs wait kill suspend
if []; then elif []; then else fi
for i in 1 2 3 4 5; do done
man test shellcheck a.sh
. a.sh source a.sh ./a.sh bash a.sh which
sudo bash -c 'echo hello > /etc/a.txt'
sudo !!
env
/dev/null 垃圾箱 /dev/random /dev/urandom 随机数生成
grep "regex pattern" dir
|