In the previous article, we had learned about the following:
1. cp command
2. mv command
3. touch command
4. About users
5. About the
Linux Commands |
Sudo command
Let's continue further...
#apt-get update Command: It will show you the list of software by updating the list.
apt: apt performs functions such as installation of new software packages, upgrade of existing software packages, updating the package list index, etc.
- It will update the list only.
#apt-get upgrade Command: It is used to install the software in the system while the update command is used to upgrade the list only.
- It actually updates the software.
#ls-r Command: It will show you the content of the home directory as well as the files or directories present inside the content of home directories.
- " r ": Stands for recursive.
- It shows the files that we have created in the hierarchical structure.
Now, if you want to make Hidden Files.
Type: touch .filename
output: File will be created.
NOTE: To create hidden files, we have to use " . "(DOT) before naming the file.
Now, type: ls command
Output: It will show you all the files or directories present in the home directory except the hidden file that you have created.
Now, if you want to see the hidden file.
Type: ls -a
Output: It will show you the hidden file.
#clear Command: It is used to clear the terminal but doesn't wipe out your commands. That means, if you scroll up it will show you your commands.
#history Command: It will show you all the commands that you had typed.
NOTE: As Linux stores the history of our commands. So you all should not run your password as a command. If you have done that and accidentally your data leaks then you gonna be in trouble.
# echo Command: This command is used to print the context.
For Example:
Input: echo "This Blog will contain all the knowledge about Hacking from scratch"
Output: This Blog will contain all the knowledge about Hacking from scratch
You can also use the "printf" Command.
Input: printf "This Blog is Best"
Output: This Blog is Best
NOTE: Linux is Case-Sensitive. That means Roshan, roshan, ROshan are three different files.
- That means you can create multiple files of the same name in Linux. But, In windows, you can't.
For Example:
touch ROSHAN.TXT
touch roshan.txt
touch ROshAN.txt
Now, if you type the ls command: It will show all the above three files.
And you can use them in your way.
Quick Recap:
1. apt-get update: It updates the list of software that you can install in your system.
2. apt-get upgrade: It is used to install the software.
3. ls-r Command: It shows you all the files or directories present in the given directory and all the files or directories as well which are present in the printed directories. Simply, it shows you the hierarchical structure.
4. Use of ". ": To create hidden files but should be used before naming the file.
5. ls -a: It shows you the hidden files.
6. clear Command: It clears the terminal.
7. history Command: It is used to know the history of commands that you run.
8. echo and printf Command: It is used to print the context.
9. Linus is case-sensitive: Means roshan, ROSHAN are different files.
I hope you understood all of it.
#Penetration Testing Tutorial for Absolute Beginners
#Technical Tools Explanation#Linux for Absolute Beginners in Hindi
#Penetration Testing Tutorial for Absolute Beginners
#Technical Tools Explanation
#Linux for Absolute Beginners in Hindi
0 Comments
If you have any doubts, let me know