-->

Kali Linux Commands | Basic To Advanced Commands With Examples

Hello guys already i had taught cmd commands,shell scripting,Termux commands,installation procedure of kali linux .





But in this Tutorial i am going to teach you Kali Linux Commands to create,delete,files,directories and many more.To start this process open your Linux Terminal First.
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
cal

The cal command is used to displays a simple calendar in general format.

root@zeeroseven:~# cal
July 2020 
Su Mo Tu We Th Fr Sa 
                    1    2   3  
  5  6   7    8   9   10 11
 12 13 14 15 16 17 18 
 19 20 21 22 23 24 25
 26 27 28 29 30 31
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
who

who command helps to find who logged into the system.

root@zeeroseven:~# who
root kumar 2020-07-12 09:53 (:0)
root thridev 2020-07-12 11:29 (:0.0)
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
man

This command helps us to find details of any special command.if you want to know more detaips then You have to read manual about how to use Oneplus phone.Like that you can get manual of any command by typing man and required manual of command you wish

root@zeeroseven:~# man whatis
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
whatis

This command helps to check description of any command.

root@seven:~# whatis ls

ls (1) - list directory contents

root@seven:~# whatis top
top (1) 
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
which

This command is used to find path of executable file.

root@seven:~# which chrome/usr/bin/chrome
root@seven:~# which who/bin/who

root@seven:~# which pwd/bin/pwd
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
View System resources with Top

Have you ever checked How many processes running on your system currently.You can Use this Command to
check out it.


root@zeeroseven:~# top
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
Rename files
To rename files we can use Mv Command.We can also use this command to move files from one place to another.


root@seven:~# mv kumar.txt jeeru.txt


By executing above command then kumar.txt will be renamed to jeeru.txt.
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
pwd

pwd stands for present working directory. This command helps to check present working directory.

root@zeeroseven:~# pwd/root

➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
cd

cd stands for change directory.This command helps you to change your present directory to some other direcroty you wish like Music folder with cd command.

root@zeeroseven:~# cd Musicroot@zeeroseven:~/Music# 
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
cd ..
If you want to go to back any application then Esc Key can be used.But this button doesnot works in Linux.You can use a special command to go one directory back.

root@seven:~/Desktop# cd ..root@seven:~#

➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
clear

This command helps to clear the terminal.

root@zeeroseven:~# clear
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
ls

ls command helps to check all files / directories in our present working directory.

root@zeeroseven:~# ls


Desktop Downloads root
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
List hidden files and directories

ls -al lists all the hidden files and directories with details like file format,file permission etc.

root@seven:~# ls -al


total 156
drwxr-xr-x 22 root root 4096 Jul 18 02:35 .
drwxr-xr-x 23 root root 4096 Jul 14 05:02 ..
-rw-r--r-- 1 root root 0 Jul 16 02:42 backup.txt
-rw------- 1 root root 885 Mar 16 02:21 .bash_history
-rw-r--r-- 1 root root 3391 Jan 11 03:03 .bashrc
drwx------ 12 root root 4096 sep 15 12:29 .cache
drwxr-xr-x 12 root root 4096 Oct 15 12:29 .config
drwx------ 3 root root 4096 Feb 14 05:11 .dbus
drwxr-xr-x 5 root root 4096 Dec 18 02:44 Desktop
drwxr-xr-x 2 root root 4096 Jun 14 05:11 Documents
drwxr-xr-x 2 root root 4096 May 14 05:11 Downloads
drwx------ 3 root root 4096 Aug 18 02:07 .gconf


➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
--help
if you have any doubts you can search on Google.
Help command gives brief information of all installed commands in Linux.

root@zeeroseven:~# ls --help



Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
--author with -l, print the author of each file
-b, --escape print C-style escapes for nongraphic characters
--block-size=SIZE scale sizes by SIZE before printing them. E.g.,
`--block-size=M' prints sizes in units of
1,048,576 bytes. See SIZE format below.
-B, --ignore-backups do not list implied entries ending with ~
-c with -lt: sort by, and show, ctime (
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
cat

This command helps to (view,create,merge)files 

you can open a file with cat

root@zeeroseven:~# cat players



if you want to create new file with cat

Tap Control+c to exit.

root@zeeroseven:~# cat>heaven


➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
Delete a file
To delete a file/folder/directory rm command is used.
Lets checkout Syntax 
rm [enter desired file name to delete].

root@zeeroseven:~# rm filename.txt


➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
Copy files

This command helps to copy files and directories.
Syntax :
cp [name of file to copy ] [ Copy Directories

Like rm command we need to supply -r argument to copy directories.
cp -r [name of the file that you want to make copy of] [name of new copy]

root@zeeroseven:~# cp -r users userscopy ]

root@zeeroseven:~# cp rain brain

➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
Create Directories or folders

if you want to Create directories in linux.Do as follows.Lets checkout the syntax 
mkdir [New directory name To create]

root@zeeroseven:~# mkdir kumar



We can create multple directories with a single command:

root@zeeroseven:~# mkdir kumar shell pyDelete Directory

Deleting directories is a little different than files.You have to use -r argument in addition with rm command in to delete a file. Syntax is very easy
rm -r [directory you want need to delete]

root@zeeroseven:~# rm -r kumar
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
Copy Directories

as rm command we need to add -r argument to copy directories.
cp -r [file to copy ] [name of new copy]

root@zeeroseven:~# cp -r gold goldpro


Also Read

Post a Comment