Linux Command Line Cheat Sheet Page 2

ADVERTISEMENT

Every output of cmd to file
tail -f file1
Calculate each of the three permission digits by
Output last lines of file1 as it changes
cmd refers to a command.
adding the numeric values of the permissions below.
4
read (r)
Process Management
Pipes
2
write (w)
cmd1 | cmd2
ps
Show snapshot of processes
1
execute (x)
stdout of cmd1 to cmd2
top
Show real time processes
cmd1 |& cmd2
kill pid
Kill process with id pid
stderr of cmd1 to cmd2
pkill
Kill process with name name
name
Command Lists
killall
Kill all processes with names beginning
cmd1 ; cmd2
name
name
Run cmd1 then cmd2
cmd1 && cmd2
Run cmd2 if cmd1 is successful
cmd1 || cmd2
Run cmd2 if cmd1 is not successful
cmd &
Run cmd in a subshell
Cheatographer
Cheat Sheet
Sponsor
Dave Child (DaveChild)
This cheat sheet was published on 28th October, 2011
FeedbackFair, increase your conversion rate today!
and was last updated on 1st February, 2012.
Try it free!

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 2