Chapter 4 More bash shell Commands
1. ps
ps -ef
2. top
3. kill 3940
kill -s HUP 3940
killall http*
4. df
df -h
5. du
du -h
6. sort
sort -n
sort -r
sort -t ":" -k 3 -n
7. grep
grep three file1
grep -v
grep -n
grep -c
8. tar
tar -cvf test.tar test1/ test2/
tar -xvf test.tar
tar -tf test.tar
Chapter 6: Using Linux Environment Variables
$mytest=(one two three four five)
$ echo ${mytest[1]}
$ echo ${mytest[*]}
$ mytest[2]=seven
$ unset mytest[2]
$ unset mytest
Linux command line and shell scripting buble
原文:https://www.cnblogs.com/NewMan13/p/11235296.html