Last Updated: February 25, 2016
·
304
· mackittipat

Useful Bash Command

Find a process that is using a particular port : Ref

sudo netstat -lpn |grep :[port]

Search text in directory : Ref

grep -Hrn "[text]" [path/to/files]

Display permission number : Ref

stat -c %a [path/to/files]