Advertisement
Home arrow Blog arrow Basic Linux Commands
Basic Linux Commands
Friday, 16 December 2005
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.

  1. How do I change directories?


    Type: cd (Move
    to another directory)

    Type: cd .. (Move back a directory)

  2. How do I check permissions
    on a file?

    Type: ls -l (Will show permissions
    for all files in directory)

  3. How do I check disk space?


    Type: df -m (Will show all free space
    info for all drives)

  4. How do I see all the files
    in a directory?

    Type: ls

  5. How do I check all running
    services?

    Type: ps -xa

  6. How do I view the contents
    of a text file?

    Type: cat

  7. How do I edit a file?

    Type: pico

  8. How
    do I use PICO?
    <-- Click To Learn how to use PICO

  9. 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.

  10. How do I execute a program,
    but send it to the background?

    Execute the command normally but add an & at the end
    of it.

  11. How do I bring a program
    back from the background?

    Type: fg

  12. How do I know what my CPU
    Information is?

    Type:

    cat /proc/cpuinfo

  13. How do I know what my memory
    information is? RAM

    Type:

    cat /proc/meminfo

  14. How do I find out information
    about my hard drives?

    Type:

    fdisk -l





Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
 
< Prev   Next >