简单命令使用grep等的使用
[zorro@isch ~]$ history
1 ifconfig
2 su
3 exit
4 ls
5 cd Desktop/
6 ls
7 tar zxcf VMwareTools-8.4.5-324285.tar.gz
8 tar zxvf VMwareTools-8.4.5-324285.tar.gz
9 cd vmware-tools-distrib/
10 ls
11 ./vmware-install.pl
12 su
13 ls
14 cd ..
15 ls
16 rm VMwareTools-8.4.5-324285.tar.gz
17 rm -r vmware-tools-distrib
18 ls
19 make
20 ls
21 cd redis/
22 quit
23 ls
24 ca redis/
25 cd redis/
26 cd redis-2.8.17
27 make
28 cd redis-2.8.17
29 ls
30 cd redis-2.8.17
31 cd str
32 cd src
33 ls
34 ./redis-cli
35 ls
36 cd redis-2.8.17 tar.gz
37 make
38 cd src
39 ./redis-server .. /redis.conf
40 ./redis-cli
41 ./redis-server ../redis.conf
42 vi test1.sh
43 ./test1.sh
44 vi test.sh
45 ./test.sh
46 ls
47 chmod 777 test.sh
48 ./test.sh
49 vi express
50 $ grep –n ‘the’ express
51 clear
52 grep -n 'the' express
53 vi express
54 grep -n 'the' express
55 grep -vn 'the'express
56 grep -vn 'the' express
57 grep -in 'the' express
58 vi test2.c
59 grep -l 'the' *.c
60 grep -n 't[ae]st' express
61 grep -n 'oo' express
62 grep -n '[^g]oo' express
63 grep -n '[a^z]oo' express
64 grep -n '[0^9]' express
65 grep -n '^the' express
66 vi express
67 sed -e 'd' express
68 sed -e '1d' express
69 sed -e '1~7d' express
70 sed -e '$d' express
71 sed -e '1,/^$/d' express
72 ls
73 cd
74 pwd
75 history
[zorro@isch ~]$
标签:
简单命令使用
上传时间:
2016-05-24
上传用户:12345678gan