User Tools

Site Tools


linux:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:commands [2018/12/23 21:14]
shaoxp
linux:commands [2021/06/01 15:29] (current)
Line 4: Line 4:
   - ''​cat /​etc/​libuser.conf | grep "​example"​ -i -n'' ​   - ''​cat /​etc/​libuser.conf | grep "​example"​ -i -n'' ​
 the command will find "​example"​ in "/​etc/​libuser.conf"​ file and print it with line number the command will find "​example"​ in "/​etc/​libuser.conf"​ file and print it with line number
 +
 +  - ''​grep "​imp"​ /etc/*.conf --color''​
 +  - ''​grep -i -r --include "​*.bash"​ "​domain"​ ./ --color''​
  
  
Line 24: Line 27:
   * passwd shaoxp   * passwd shaoxp
   * gpasswd -a shaoxp wheel   * gpasswd -a shaoxp wheel
 +    * or sudo adduser shaoxp sudo
  
 above commands will finish add shaoxp as admin user. above commands will finish add shaoxp as admin user.
 +
 +====== awk ======
 +  * awk '​{print $6 " " $1 " " $9}' ./file
 +  * awk '​{print $6 " " $1 " " $9}' ./file| sort -n -r | more
 +  * cat file | awk -F ' ' '​{if($1>​10){print $1}}' ​ | wc -l
  
  
  
  
linux/commands.1545570871.txt.gz · Last modified: 2021/06/01 15:29 (external edit)