 |
|
|
Basic Linux Commands
Last
Updated:
November 30, -0001
The following are a list of basic Linux commands that will help you in running your dedicated webserver. While these commands are not "required" to run the server they will help you run your dedicated server more efficiently. The commands below will be used once you SSH into your server. You will be SSHing using Putty.exe or your favorite SSH Utility. For information on using Putty.exe please click here Putty.exe
- How do I change directories?
Type: cd <directory name> (Move
to another directory)
Type: cd .. (Move back a directory)
- How do I check permissions
on a file?
Type: ls -l (Will show permissions
for all files in directory)
- How do I check disk space?
Type: df -m (Will show all free space
info for all drives)
- How do I see all the files
in a directory?
Type: ls
- How do I check all running
services?
Type: ps -xa
- How do I view the contents
of a text file?
Type: cat <filename>
- How do I edit a file?
Type: pico <filename>
- How
do I use PICO? <-- Click To Learn how to use PICO
- How do I debug a cgi script?
Goto the directory the file is in.
Type: ./filename.cgi
Read outputs, and fix errors based on output read.
- How do I execute a program,
but send it to the background?
Execute the command normally but add an & at the end
of it.
- How do I bring a program
back from the background?
Type: fg
- How do I know what my CPU
Information is?
Type:
cat /proc/cpuinfo
- How do I know what my memory
information is? RAM
Type:
cat /proc/meminfo
- How do I find out information
about my hard drives?
Type:
fdisk -l
|
|
 |
|