Kali Linux Simple Commands
Kali Linux Simple Commands
ls - to list dir/file
cd x(x: any dir/file) - to enter the x dir/file in terminal
cd .. - go back previous directory
pwd - print path
clear - to clear
mkdir x(name of dir) - make directory in the present path
rmdir x(name of dir) - remove empty directory in the present path
rm -r x(name of dir) - remove directory
touch x(name of file).format(ex - .txt) - create file
chmod +r x(name of file).format - to read the file
+w - to write the file
+x - to execute the file
We can also read text file through
> cat file.txt
To copy and paste the file go to the dir where file exist by cd x command then:
> cp file.format path(where to copy: /home/nirbhay/Downloads)/file.format
To write a content in text file through terminal we can use nano editor
> nano file.txt