Linux

Kali linux all basic command list



In this video you will get all Basic to advance command list of Linux, Kali linux and Termux terminal.
1) List Command
ls = for listed out all files and folders inside any Directory
ls -l = for listed out all files & folders with modified date,time & sizes

2) Change Directory Command
cd [Directory name/path]= to go into a particular directory
cd .. =for go to one step back previous directory
cd – =for go to one step forward or last working directory
cd ~ =for Change Directory to Home Directory From Any Location in Linux

3) PWD =for show the Present Working Directory

4) Copy Command for copy any file/directory to any file/directory or you can use path
cp [source file name] [destination directory]
cp [source directory] [destination directory]
cp [source file name] [destination file name with extension]

5) Move Command for Move any file/directory to any file/directory or you can use path
* So This Move command will delete that current file/folder from the current directory
and move to the new directory.
mv [source file name] [destination directory]
mv [source directory] [destination directory]
mv [source file name] [destination file name with extension]

6) Remove Command for remove/permanently delete the file/directory or you can use path
rm [file name] = for delete the file only
rm -rf [folder/directory name]= for delete permanently that folder

7) Create File/Directory all Commands to create files or directories
mkdir [new directory name]= for create a new directory
nano [file name/with path] = for create a new file you have save with contents this is nano editor
touch [file name/with path] =for create a new Empty file.
cat (greater than sign) [file name/with path]= for create a new Empty file.
(Greater than sign) [file name/with path] =or create a new Empty file

8) Display/show the contents of the any File
cat [file name]

9) Edit the contents of the any File
nano [file name]

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button