This is a guide on some simple commands on SSH that you should know when you start using a VPS.
cd
Use this command to change your current directory. The root of the hard disk is "/". The current directory "./". The parent directory of the current one is "../", and it's parent is "../../", etc. Most commands will assume the current folder if you try manipulating a file with establishing a path. /usr/local is where you will find most software, including Apache and most control panels, such as cPanel.
d/dir
This command lists the contents of a directory. You can add a path to the end of this command to list all the contents of that folder, or you can just leave it without a parameter to list all the contents off the current folder.
cp
This command copies files. The syntax is to first write the current path of the file(s), and then the destination. In order to copy full folders, and add a /* to the end of the path of your folder. You don't need to modify the destination at all. If you want to copy without questioning any overwrites, use cp -f (f = force).
vi
This is Linux's sort of "notepad." See here for more info:
http://www.comptechdoc.org/os/linux/...inux_ugvi.html.
chmod
You can modify permissions on files using this command. The syntax is to first write the permissions you want (eg. 444, 644, 777), and then give the path to the file you want to modfiy.
tail
This will give you the end contents of a file you specify. Handy for viewing small files or log files without going into a text editor.
locate
Will find any files in your system under the name you specify.
rm
Will remove a file. Use rm -f /path/* to removed all files from folder "path."
rmdir
Will remove a directory. However, it must be empty.
mkdir
Make a new directory.
tar
Untar or untar-gzip a file. Use tar -xzf for untar-gzipping.
top
Will give you some system details, kind of like Task Manager.
du
Will check your disk usage.
httpd
On most systems, this refers to Apache's httpd daemon. Typing it in with any parameters should "start" httpd. If this is not the case, it is probably calling apachectl. This httpd will be located in /path/to/apache/bin/httpd.
apachectl
This is a kind-of Apache monitor. It allows you to start, stop, restart, etc. Apache.
apxs
This is used for installing modules into Apache. See here:
http://httpd.apache.org/docs/1.3/programs/apxs.html.
lynx
This is Linux's built in text browser. In order to scroll links, use the up and down keys.
Additional resources:
http://httpd.apache.org/docs/1.3/programs/apxs.html (another SSH guide on WHT)
https://www.powervps.com/support/ind...&kb_rating=yes (SSH newbie guide)
http://www.ss64.com/bash/ (a simple guide of basic Linux command line functions)
http://www.oreillynet.com/linux/cmd/ (a complete guide of most SSH commands)