My Linux Cheatsheet
You’ll find a lot if you google for UNIX/LInux shell commands I list some good ones that I have seen. There are more useful links here.
DOS to Unix side by side
Vi editor reference
Lots of Command line examples here.
tuXfiles An Introduction to Linux Command Line
Linux Command Library (MAN Pages)
ln -s /full/path/of_source/file.name /full/path/of_destination/file.name
Remove folder with files and folders within it
rm -rf folder.name
Move or rename a file
mv /path/of/old/file.name /path/of/new/renamed.file
Check your free memory
free -m, more options in MAN page
View running processes and memory usage
top and type
q to quit, more options in MAN page
Find process ID
ps ax | grep [process_name]
Kill a process
killall -[option] [process_name] for options see MAN pages
Mount a drive
mount /dev/sda1 /mnt/[mount_drivename]
List iptables configuration
Secured shell access
ssh -p [port_number] [username]@ip.number.ofyour.server If
-p [port_number] is omitted default port 22 will be used.
Secure copy between hosts
see MAN pages.
Mysql command line access
$ mysql -u [username] -p
In case you really like playing around with your database at command line, this reference is handy.
check disk usage
see your OS version