As
we know Linux command Line is the powerful tool for a user. First of all let us discuss about 3 basic commands which helps you to manage files and folders.
- pwd
- ls
- cd
pwd
:
This command prints the
present working directory. That is if you want to know actual
location where you are standing in your terminal section ,just type
pwd . It makes your navigation better.
ls :
The
ls command is used to list the files and folders in the current
directory .It is similar to the 'dir' command in Windows. It is
important to mention about some parameters those are used along with
ls to make this mapping efficient .
1.
ls -a
The
above command will list all the files and folders including the
hidden
files.
2. ls -r
This
command will list the contents in reverse order.
3. ls *.txt
This
will list all the files of type .txt .You can change the extension
say .jpeg
for picture type files.
cd
:
The simple command which is used to navigate to another directory
expanded as change directory. The syntax is cd <directory>
eg:
cd /usr/bin will move the current directory to /usr/bin.
Note : You can navigate to
the previous directory by the command 'cd ..'
No comments:
Post a Comment