50 Common Linux Console Commands You Should Learn By Heart
We have listed below 50 commonly used Linux / Unix commands that we think every geek should learn by heart. These commands are vital for your complete access to Shells and Consoles. Print them out. Hang them near your monitor. Practice them. Only constant practice will let you retain the usage and utility of all these console commands. Enjoy the list.

- clear: Clears the terminal window
- ls directory: List contents of a directory
- cat filename: Displays the contents of a file in the terminal
- rm filename: Removes a file
- cp sourcefile detstinationfilename: Copies a file
- passwd: Changes password
- motd: Message of the Day
- finger username: User information lookup program
- startx: Starts an X Window System server
- less filename or more filename: Displays the contents of a file in the terminal one page at a time
- info: Displays information and documentation on shells, utilities and programs
- lpr filename: Sends file to printer
- grep string filename: looks through files for strings
- head filename: Displays first 10 lines of file
- tail filename: Displays last 10 lines of file
- mv existingfilename newfilename: Moves or renames file
- file filename: Displays information about file contents
- echo string: Copies string to terminal
- date: Displays current date and time
- cal: Displays calendar
- gzip filename: Compresses a file
- gunzip filename: Decompresses a compressed file
- which command: Displays path to command
- whereis command: Displays paths to locations of commands
- who: Lists currently logged on users
- finger username@hostname: Obtains detailed information about a user currently using the system
- w: Lists currently logged on users with processing usage
- mesg y/n: Sets options for letting other users write you messages
- write user: Sends message to other users
- talk user: Allows two way chat to other users
- chmod permissions filename: Changes file access permissions
- mkdir directoryname: Makes a directory
- rmdir directoryname: Removes an empty directory
- ln existingfile new-link: Creates link to an existing file (hard link)
- df: Displays all mounted filesystems
- top: Displays updating list of currently running processes
- tty: Displays the name of the terminal in which the command was issued
- kill PID or %job number: Aborts a process by PID (Process Identification Number) or job number
- jobs: Displays a list of current jobs
- netstat: Displays network connections
- traceroute host: Prints the route packets take to the host
- nslookup: Queries Internet domain name servers
- hostname: Displays system identity name
- rlogin host: Utility to connect to a remote system
- telnet host: Utility to connect to a remote system (similar to rlogin but more interactive)
- rcp file remotemachine: Used to copy from a remote computer
- ftp: Utility to transfer files between systems on a network
- rsh command: Utility to run a command on a remote system without logging in
- ping host: Utility used to test connection to a remote system
- lcd directorypath: Changes local machine directory while logged on to remote machine
In order to practice the commands above, a free Linux shell account comes very handy. We have compiled a list of free shell account providers here.
A good Telnet / SSH client like PuTTY is also very useful to access Linux/Unix servers across the network.
Have a great day!
People who liked this Post also read
You might also be interested in
- Learn To Manage Your Own Linux Server
- List of Free Linux/Unix Shell Account Providers
- Windows XP Secrets: Discover 3 Hidden Desktops
- Google Search Tool: How to Search for MP3 and AVI Files
- Free Action Games For Linux - Download Now
- Windows Shortcuts and Commands
- How to cheat on online flash games?
- Xbox Live is Down and No Status Update on Website!
- How to Turn On Your PC in Under 10 Seconds
- Internet Speed: How to Increase with HOSTS file
Link to this article from your site or blog. Just copy and paste following code:
Trackbacks & Pingbacks
- Pingback by 50 Common Linux Console Commands You Should Learn By Heart : The Current Affairs on October 15, 2008 @ 1:28 pm
- Pingback by List of Free Linux/Unix Shell Account Providers | ixibo on October 22, 2008 @ 12:52 am
Comments



















motd is useless. I used it once in a class and once when a sysadmin mentioned that he put clever things up as motd. It is truly a utility that should be forgotton. Finger, talk/write/mesg, rcp? who uses that over scp?, cal over date?, startx? I mean if you’re meorizing commands you have x running on a virtual term nowadays. You shouldn’t be putting up obviously misleading guides. We need more DECENT sysadmins, so arm them correctly.
rlogin/rsh ?
Those commands are dead. Use slogin/ssh.
rlogin/rsh should be turned off on any machine that is concerned about security. The same goes for NIS.
uhh… not to mention ‘man’… how exactly did you miss that?
these are simple commands!!!
i need all commands of linux !!!
and i know u can !!!
paras wadhers last blog post..Apple’s Future
I have to agree that motd isn’t very useful. finger is no longer of much use, and can represent a security risk. Also, it’s mentioned at #8 and #26.
rlogin, rcp, and telnet are all outdated. Use ssh, scp, and just forget about telnet altogether - it’s a security hole.
Someone pointed out that you omitted man. info is about as good, but sometimes there are man pages when there isn’t an info page. I recommend using both.
yeah, quite lame, do your homework, buddy.
it’s 2008
I will still say nice work. Even though the post has generated a lot of harsh comment, it achieves at least one goal.
It has created an opportunity for newbies to learn what is useful, what is obsolete and what is now deemed risky!
Nice try. Just do more research. Cheers.
Naija Businesss last blog post..How To Receive Payment Online
Good for linux users!
The main biggy your are missing is ‘ps’ to view the process table (although you have kill?) - I myself must type ps -ef on average about 25 times a day.
Also there is ’su’ - to change user accounts which a sysadmin will use all the time.
Then there is lsof, nohup, sed and awk etc etc.
In the 15 years I hve worked with *nix - I have never used motd
I will try it now.
As others have suggested, this list is kind of weak. I would take out these commands: clear (easier to use keyboard shortcut ctrl-L)
motd, (rarely implemented and when it is it’s usually added to a user’s profile)
finger, rarely implemented (security issues)
mesg, write, talk (not much use for them these days but if you needed to send a message to users why not just use wall?)
who/w are redundant one or the other would suffice but i’d keep w personally
no need to remember gunzip really since the functionality is in gzip also w/ the -d option
rlogin,rsh,rcp,telnet (obsolete for quite a while no one in their right mind would use these anymore)
a couple i would add: fuser, lsof, find, xargs, mount, man(as someone else suggested), an editor (vi emacs nano etc), chown, reset, strings, split,tar, bzip2, and also a working knowledge of redirection <, <<, >>, |, etc.
i guess there are a lot of commands someone “should learn by heart” (didn’t even touch regex or scripting) but i guess it comes down to the level of proficiency they require.
edit: << should be <<<
also i’d like to add pkill, pgrep, time, watch, and crontab to the list.
It’s a very nice list - but as commented already, there are some commands that are long overdue and some other important ones missing.
It’s still something to bookmark, and poses a nice reference. I didn’t even know about “w”, only “who” - so I still learned a bit
It’s a very nice list - but as commented already, there are some commands that are long overdue and some other important ones missing.
It’s still something to bookmark, and poses a nice reference. I didn’t even know about “w”, only “who” - so I still learned a bit