Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    2

    Default common commands

    I was just looking for some help. I am new to shell and looking for a good resource or simply a list of common commands. I have quite a bit of knowledge with WHM and I am just trying to learn as much as I can. Any info you can pass along would be great.

    Thanks
    Ryan

  2. #2
    Member
    Join Date
    May 2005
    Posts
    29

    Default

    Try this one ...
    http://linux-newbie.sunsite.dk/



    Adam

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    ...and these excellent guides:
    http://www.tldp.org/guides.html
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    2

    Default

    Thanks guys, I will go thru these both

    Ryan

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    65

    Default

    ls Displays everything in the current directory
    ls -a Displays all files, including hidden
    ls -l Displays all files, along with the size and timestamp
    tar -zxpf <file.tar.gz> Uncompresses tar.gz files
    tar -xpf <file.tar.gz> Uncompresses .tar files
    gunzip <file> Uncompresses .gz files
    cp <file> Copies a file to a new file
    mv <file> Moves a file to a new file, or rename
    mkdir <dir> Creates a directory
    rmdir <dir> Deletes a directory
    rm <file> Deletes a file
    rm -rf <dir> Deletes a directory
    cd <dir> Moves to a directory
    cd .. Moves to a lower directory
    cd ~ Moves to your home directory
    cd - Moves to the previous directory
    pwd Displays the current directory
    pico <file> Edits a file
    ftp <site> Connect to a FTP server
    lynx <site> View a webpage
    df Displays the hard drive stats
    quota Displays your quota
    uptime Displays the uptime of the server
    uname -a Displays the operating system stats
    whoami Displays your info
    who Displays others connected to the server
    last Displays the last login
    whereis <file> Tells where a file is located
    ps -x Displays processes your running
    ps -a Displays all processes running
    ps -ux Displays running processes, with CPU/Memory usage
    kill <pid> Kills a process
    kill -9 <pid> Kills an eggdrop process
    killall <program> Kills all running process of the same type
    whatis <command> Description of commands
    man <command> Displays help on the command
    nano <file> editor that's similar to pico
    Top gives an overall view of what is going on with the server including memory usage, server load and running processes "q" to exit top
    sar -q gives a report of the process list, 1 minute and 5 minute average load every 10 minutes since midnight server time
    tar -zcf filename.tar.gz file Tars up the file or directory of your choice, replace filename.tar.gz with the name you want your tar file to have...with the tar.gz extension on the end and replace file with the file or directory you want to tar up. You can also use a path/to/file for both.
    updatedb Updates the locate/search DB.
    find / -user <username> Finds all files that belong to a specific username.
    /scripts/pkgacct2 <username> Creates a full backup of a certain cPanel account.
    /scripts/restorepkg <username> Restores a full backup which must be located in /home.
    crontab -e Allows you to edit the crontab and also look to see what is in there.

    Regards,

  6. #6
    Member
    Join Date
    Apr 2004
    Posts
    220

    Default

    so what about scripts on /scripts do? is there any list with explanation?

  7. #7
    aby
    aby is offline
    Member aby's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    638

    Lightbulb

    Quote Originally Posted by markhard
    so what about scripts on /scripts do? is there any list with explanation?

    Have a look at this link. This can help you.

    http://www.cpanel.net/docs/whm/Scripts.htm
    Aby

    MSN "abyvarghese007"
    Yahoo " abyattaikkulathu"

    http://slashome.com

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    ...and for any others, search the forums for them. there's no definitive list.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Thumbs up

    http://www.ss64.com/bash/ Here's a few more for the thread.

Similar Threads & Tags
Similar threads

  1. Common Lisp
    By computica in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-16-2009, 04:14 PM
  2. Common Internet Domains
    By gtron in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-03-2008, 08:12 AM
  3. Common features to allow a reseller?
    By WK-Anthony in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-15-2005, 05:46 AM
  4. Common FTP Account
    By webindia in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-19-2005, 10:26 AM
  5. Common Server Crashes
    By Qix in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-13-2005, 12:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube