Hello Guys, let's start learning commands of Linux.
#ls Command:
- ls stands for "listing".
- This command is used to know the files or directories present in the current directory.
After installing the type: ls command
Output: Files or directories present in the system. As you haven't made any file or directory.
#pwd Command:
- Stands for "Print Working Directory".
- It will show you the current directory in which you are working.
After ls command type: PWD
Output: Current Directory in which you are working.
As we know, In windows, we have C-drive or D-drive. But in Linux, there is a tree structure or hierarchical pattern of files or directories.
NOTE: " / ": This symbol is known as Root Node or Root.
#cd / Command:
- Stands for Change Directory.
- It will move you inside the root nodes as we have used the root node symbol.
Now, if you type the "ls" command:
It will show you all the root nodes present in the /.
NOTE: " $ "" This symbol means you are a regular user.
* Input: cd /bin
It is known as the Absolute Path
*Input: cd bin
It is known as the Relative Path
Both of the above commands will show you the files or directories present in the bin directory or folder.
#cd .. Command:
- It is used to come out of the working directory.
#mkdir Command:
- Stands for "Make Directory".
- It is used to create files or a directory.
Input: mkdir file1
Your file will be created.
Now, type: cd file1
It will move you inside the file1 folder.
Now, if you again wanna make a file or directory, use the mkdir command and the file name. And you can create any file of any extension.
This time if you make a file it will be created inside file1 as we have changed the directory to the file1 directory.
Again, if you input the ls command it will show you the files or directories that you have created.
Quick Recap:
In this article, We have learned the basic Commands:
1. ls Command: It will show you the files or directories present in the current directory.
2. pwd Command: It will show you the directory in which you are working.
3. cd Command: It is used to change the file or directory.
4. mkdir Command: It is used to create files or folders.
#Penetration Testing Tutorial for Absolute Beginners
#Technical Tools Explanation
#Linux for Absolute Beginners in Hindi
I hope you understand all the things. If anyone has doubts, he/she can ask me in the comment.
0 Comments
If you have any doubts, let me know