Home Linux Web Server Linux Command Line Cheat Sheet
Jul 31
Saturday
Linux Command Line Cheat Sheet PDF Print E-mail
Written by Ron Bassett   
Monday, 31 August 2009 20:17

This is a small Cheat Sheet for the Linux Noobies out there.

Tar with permissions

tar -pczf filename.tar.gz www/

UnTar with permissions

tar xvfz filename.tar.gz

Restart Apache

/etc/init.d/httpd restart

Stop Apache

/etc/init.d/httpd stop

Start Apache

/etc/init.d/httpd start

Permissions with recursive

chown -R user:group httpdocs/

Show file size in Megabytes (mb)
ls -l --block-size=1m
more info here http://linux.about.com/od/commands/l/blcmdl1_ls.htm

 
Home Linux Web Server Linux Command Line Cheat Sheet