Chpt.5-Introduction To Linux
Chpt.5-Introduction To Linux
3. sudo Overview
This command will display the current directory you are in.
This command will display the list of files and directories in the current directory.
This command will change the directory you are currently working on.
This command will list all the lines containing the keyword in them.
This command will create a new directory in the current folder with the name directory name.
1.2. Exploring Kali Linux command line
6. To remove a directory
>>rmdir directory_name
This command will remove the directory with the name directory_name from the
current directory.
7. To move a file
>>mv source destination
8. To copy a file
>>cp source destination
This command will copy the file from the source to the destination.
This command will create a new file with the name “filename”
This command will display a manual or a user guide for the command.
1.3. Exploring Kali Linux command line
11. To check the internet connection or to check whether the host is active or not.
>>ping google.com
This command will send some packets to the mentioned host and will give us output about the details of what is the status of the packet. This
command could be used to check the internet connection.
This command is used to display the details of the network interfaces connected to the system.
This command will download the file from the link entered in the command.
This command will remove the mentioned package from the system.
1.4. Exploring Kali Linux command line
16. To upgrade packages in the system
>>sudo apt upgrade
This command will check for updates of all the packages and will add the updates in the list to upgrade.
This command will ask for a password and will change the current user to root.
>>for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j
key=clear
7. Deletes a File
>>del file_name
10.Creates a Folder
>>mkdir File_name
11.Deletes a Folder
>>rmdir folder_name # The folder must be empty for this command to work.