Facebook Hacking.... Click Here | 12 Steps To Become Hacker.... Click Here

Monday, 24 June 2013

Introduction To Basic Terminal Commands For Linux - Part 1

linux terminal
In this tutorial you will learn to use linux terminal. You will learn to navigate on the terminal, learn to create and remove file and much more. Most of this commands also works on Mac Os X and powershell on windows.

What Is Terminal ?

Basically you are reading this tutorial because you are new to linux or want to learn using terminal to navigate. Before you get started you must have linux installed or running virtually on your computer. I would recommend downloading fedora or ubuntu (If you have trouble installing ubuntu leave a comment below and i will post a tutorial).

Commands To Remember

This are some of commands you must remember which will help you to use terminal more easily.
ls - it will list all files and folder in your current directory
ls -l it will give detailt listing of all files and folders
ls -a it will list all files and folder in your current directory including hidden files (files and folders that begin with period)
pwd will print your working directory or simply your current directory

Navigating In Terminal

Here i may refer folder as directory so dont get confused. This is the term we use in linux for folders.

cd - cd stands for change directory. we use cd follow by path address to navigate ro that folder.
Eg: cd Desktop will make desktop as my current directory.
cd / will make root as you current directory
cd ~ will make home as your current directory
Typing cd alone is same as cd ~ and it will make home as your current directory
cd .. will make parent directory i.e directory above your current directory
cd ../../ will take you two folder up

Creating Files And Folder

mkdir - we use mkdir follow by path or folder name to create a directory
Eg mkdir car will create directory car in your current directory
to create folder recursively i.e folder inside folder inside folder we use -p flag
Eg mkdir -p vehicles/car/truck will create directory vehicles in your current directory which have car inside it and car has directory truck in it.

touch - we use touch follow by file name to create empty file.

Removing Files And Folders

rmdir - we use rmdir follow by path to to remove any directory. This will not work if folder you are trying to remove has something in it.
rm -r  to remove file recursively which can not be removed by rmdir
rm - We use this command to remove files


I guess thats enough for today. I know this is little confusing but practice and you will be a terminal pro.  Leave a comment below if you have any trouble. You may also like to read below articles.

Subscribe To Get FREE Tutorials!

Kindly Bookmark and Share it:


Ali Raza on 25 June 2013 at 01:42 said...

interesting and informative post :)

Jatin Singh on 26 June 2013 at 01:40 said...

nice post i like it


Sijo Joy on 26 June 2013 at 08:41 said...

@Ali ya interesting and informative post. Iam waiting for part 2

Sijo recently posted Security tips for your Mac

Ahmed hassan on 10 July 2013 at 13:33 said...

I have read so many posts about the blogger lovers however this piece of writing is really a fantastic piece of writing,keep it up Feel free to visit my web blog Go to My fancy site

kingmanoj on 19 July 2013 at 18:32 said...

pls post ubuntu tutorial

Shakil Islam on 27 October 2013 at 03:36 said...

Good start. But you got too many widgets. Very slow loading website, so consider that as well. Anyhow, here's a good post related to your one.. CLI ifconfig – How to setup IP addess from Command Line in Linux

gowri shankar on 13 November 2013 at 22:05 said...

i have a ubunto os, i need some help to install virtually in my pc

Suraj Chaudhary on 31 March 2014 at 23:04 said...

This is really very good and simple... Earlier I think it might be hard...
But its is similar as windows command prompt..
Thanks for making my doubt clear...

Arjun Rai on 23 February 2015 at 09:17 said...

this post is awesome, great msg for us, if any want to free backlink then click.

PLC Training In Chennai on 11 September 2015 at 05:27 said...

PLC Training in chennai
PLC Training Institute in chennai
PLC Training Center in chennai
PLC Training Course in chennai
PLC Course in chennai
PLC SCADA Training in chennai
PLC Training Centre in chennai
PLC SCADA Training Institute in chennai
Best PLC Training in chennai
Best PLC Training Institute in chennai
DCS Training in chennai
Automation Training in chennai
Automation Training Institute in chennai
Industrial Automation Training in chennai
Process Automation Training in chennai
Embedded Training in chennai
Robotics Training in chennai
Inplant Training in chennai

Anna Kapoor on 22 January 2016 at 02:08 said...

Nice post
Udemy Promo Codes
Udemy Coupon Codes

Mobit Solutions on 20 June 2016 at 03:59 said...

These are just basics that you have described. drupal development

Regina Hilary on 27 February 2017 at 05:35 said...

The blog or and best that is extremely useful to keep I can share the ideas
of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
tanki online | 2048 game| tanki online game

Unknown on 18 March 2017 at 02:27 said...

pliz hack my website www.pirmashayakh.com

Click Here To add Comment

Post a Comment

Newer Posts Newer Posts