Some Basic Kali Linux Commands | Kali Linux Tutorial


Hello and welcome to UK2blogger once again. Today we are going to see some basic commands we will be using in our future tutorials.

These are some of the best ways to practice the basics of Kali Linux Terminal.

So what exactly we are going to do today. We are going to have a look at some of the basics of the command line, you might know or can start with.

So without getting in a long conversation or theory lets get into the terminal commands quickly.

So what is command line, Command line is a text-based interactive interface allows to enter and execute them to do some sort of changes that affect the OS and provides us the output exactly we want the system to sow.

Some of the Basic Commands are Listed Below

pwd
mkdir
mv
rm
cp
cd
cd ..
nautilus
exit

Explanation command is shown above

pwd ---------Print Working Directory
cd-----------Change Directory
mkdir--------Make Directory
mv-----------Moving and Renaming Files
rm-----------Remove Files
cp-----------Copy Files or extensions
cd ..--------Go Previous Directory Just Before Changing Directory
ls-----------List Directory
nautilus-----To open File Manager
wget https://a.jpg/amy_url to download the files online
exit---------To close or Exit The Terminal

Let us talk about some more commands belongs to certain categories like REMOVE COPY LIST and others

FILEMANAGER
To open the file manager in specific directory using terminal simply use the command nautilus and provide the path file manager will open the path directly. 
nautilus '/DIRECTORY PATH'

REMOVE FILES
In order to delete a single file, we can use rm or unlink command
rm file.abc
rmdir file.abc
unlink file.abc

To remove the multiple files | if all the files belong to the same extension, you can use command rm *.abc and hit enter
-Multiple files with various extensions
rm file.abc file2.a file3.abc file4.ttt
-Multiple files with the same extension
rm *.abc

Use -i between the remove command to get confirmation before deleting all files. Where you have to press Y for yes N for no.
rm -i *.txt

rm -f file.txt
Use -f to force to delete the file if it is protected by the system with write protection.
rm -fv file.txt

REMOVE DIRECTORIES OR FOLDERS

Remove multiple directories at once by manually putting their names after.
rm -r Folder1 Folder2 Folder3 Folder4 Folder5

To remove the empty folder you can use these commands
rmdir FolderName
rm -d FolderName

To remove the filled folder with multiple files we use -r command with rm. -r stands for recursive.
rm -r FolderName

Use -rf to remove filled folder without prompted or any warning. -r recursive and -f force
rm -rf FolderName  

As a file, we can check the options to delete the folder after the command you have to use Y for yes and N for no. -i stands for options.
rm -ri folder1 folder2 folder3 folder4

MOVE FILES COMMAND mv can be used to remove or rename
files are ram.txt sita.txt
mv ram.txt ram.bat  it can change the extension
mv sita.txt sita.bat
mv ram.txt shyam.txt   it can change the base filename
mv sita.txt radha.txt

Move the file into a directory. Use mv file.txt FolderName
mv file.txt FolderName

Move multiple files in a Directory
mv file.txt file2.txt file3.txt Foldername
mv *.txt FolderName

Move Directory to directory
Directories are RAM SITA
mv ram sita   it will not move the folder
In order to move ram in sita simply type
ls -F
mv RAM SITA

LS COMMANDS LIST DIRECTORY
ls -l to list all the files with the modification date
ls -la to list writes of protection with the modification date.

Disqus Comments