10 Basic Linux Commands For Beginners With Examples – Part1

By | January 11, 2011

Hello there!! Over the past few days I have been compiling a list of basic commands that every beginner should learn. Right now, I can’t post all the commands in a single post, because it might confuse you. So, therefore I decided to release 10 commands at a time. The first part will be posted now and rest of the parts shall be published soon.  These commands are in the alphabetical order and therefore I start with the letter “A”.

1: apt-get – Command line tool to install, remove and update packages in Debian and Ubantu. I guess few other linux distributions might also support this.

apt-get install ssh
apt-get remove ssh
apt-get update ssh

2: bc – basic calulator to make some basic arthematic calculations. Here is how you can make basic caliculation using “bc” from a single line command.

echo “34 * 2” | bc

3: diff – Shows the difference between one file to another. Compares both the files line by line and generates the output based on the comparion. You can alternatevely use “meld” command line utility for better performance.

diff file1 file2

4: cal – Cal shows the calender for the current month as default output.

cal -y (display calender for current year)

5: cat – Prints the content of a file pointed to the terminal.

cat filename

6: chmod – Helps you control the files and directory permissions. Note that the user sometimes (not everytime) should login as a root user to use this. This can happen when you want to change the permissions of the file created by the root.

chmod +x filename
(To give the excution permission to the user logged in)
Example: chmod +w filename
(Giving the write permission to the user)

7: chown – Chown is used to change the owner and default groupname for the file.

Chown root:root filename
( Using this command on the file allows only root user to access and edit the file.)

8: chroot – Chroot changes the root directory to someother location. This can be really useful when u create a snadbox to test an application of yours.

chroot /home/test/sandbox

9: clear – This command creates an empty space on the teminal by clearing the used space.


10: cp – cp is one of the basic linux command used to copy a file from one location to another location.

cp /home/linux/sample /home/sample

Go to PART 2 of this tutorial.

If you like this article, then please consider sharing it. Sharing really inspires us to do things much better!!

6 thoughts on “10 Basic Linux Commands For Beginners With Examples – Part1

  1. Pingback: 10 More Basic Linux Commands For Beginners With Examples - Part2 | Linux Tutorials

  2. Pingback: 10 Basic Linux Commands That Work On Debian Lenny PART3 | Linux Tutorials

      1. pro Post author

        hmm!! Quite obvious. CZ that’s linux!! By the way, nee linux ku Pudusa?

  3. Pingback: 10 More Basic Commands For Linux Beginners Part4 | Linux Tutorials

Leave a Reply

Your email address will not be published. Required fields are marked *