my linux command tips
- grep
grep <expression> <path>
grep '^public' /etc/passwd #search line begin with public in '/etc/passwd'
grep options:
-E enable extends pattern
-i case insensitive
-n show line number
2. find
find <path> <expressions>:default path . default expressions-print
expression: e1 -a e2:parse e2 only when e1 is true.same as e1 e2
e1,21:parse e1 and e2.
find expresssions:-group -type -user -exec cmd
3.echo
echo ${var}char:display value of var and flow with char.
4 readonly var:make the value of the var is read only.
5 export
global variable set.
相关推荐
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20
liuhangtiant 2020-10-20