Skip to main content

Linux Command Line Tutorial For Beginners - Introduction

Hi Friends,
Welcome to Blog, Welcome to Linux.

Now first question you may ask yourself why we should learn command line, even if we have GUI?
So, Simple answer is that GUI (Graphical User Interface) is helpful in many task but not useful in all task, and when you learn command, you will observe that you are able to do your day to day task or any task related to programming much faster that you can do with GUI.
By using command you can able to see what happening in a background when you given a something task.
Before dive into the world of Linux you should know two terms i.e., Shell and Terminal.
Now what is Shell? Shell is a simply a program that takes inputs from the keyboard and gives that to the operating system to perform task.It is also called as CLI (Command Line Interface), Now the second term is Terminal, terminal is tool which is used to pass a shell command, this is a program that open up a window and lets interacts with shell.
There are different operating system are available but the command for all are almost same.
Lets begin with terminal, you can open terminal by search terminal in search box or simply strike key ALT+Ctrl+T. Once Terminal get opens you can able to give any command.
Firstly, We have to learn file system works in Linux, like all other operating system, all files are arranged in hierarchical directory structure, which means that they are arranged in tree like manner of directories. in Windows we usually called directories as folders. Directories may contain files or other directories also.
In Linux the basic or say main directory is Root and under this directory all files and folders are residing.
Hierarchical Directory Structure





Now lets start our Command line journey,
First command you should learn is pwd (Present Working Directory): This command shows you currently in which directory you are. By default, when you open your terminal you are in home directory. 
If you want to go to root directory then you should give command as cd / (Change Directory) we will learn cd command in detail in next part of blog.
Now, if we want to see which files and directories are present in particular directory we will enter command as: ls (List) this will list out all files and directories names.

In next part we will learn more detail about ls and cd command and moving towards some what difficult level of command.

If you have any suggestion or feedback you may put comment or contact with me.

Contact Details:
Phone: +91-8208826234
E-mail: shivampawar1038@gmail.com

Comments

Post a Comment

Popular posts from this blog

Linux Command Line Tutorial For Beginners - ls command

ls is a Linux shell command that lists directory contents which may be files or directories. First of all lets open Terminal, Alt+Ctrl+T ls command uses following syntax:          ls [option] [file or directory name] if we give simple ls command it will show us all directories and files present in home directory, as when we open terminal by default we are in home directory. Now if we want to see what is in Downloads directory then we simply give command as:                          ls Downloads Note one thing i.e., command line is case sensitive so we should write name of directory or file as it is. In same way you can able to see contents of any directory. If we want to see content of root directory then we will write command as: As we know / is called as root directory.      ...