shell common foundation

Find grep command

ps -ef see the process

ps -ef | grep java

ps -ef | grep sshd | grep -v grep command itself excluded

View a specific line in the text cat hello.txt inside | grep ^ h h View beginning with the line

find find path Type Name  

find / -name hello. txt to find the path from the root

find / 777-bit look Permissions 777 from the root path -perm

find / -name '* .log' view log files ending

find / -size +100 Find files larger than 100M of files

whereis locate the executable file

 

Guess you like

Origin www.cnblogs.com/tangsonghuai/p/11027156.html