Kali Linux commands list – Basic to Advanced with Examples

Kali Linux commands list – Basic to Advanced with Examples

Easiest way to use Kali Linux by commands but you should know there are thousands of the Kali Linux commands. And the biggest problem for the new user to learn about these commands.

Overview of Kali Linux commands:

In this article, I am going to cover how to use Kali Linux commands exactly without knowing anything about the tool.
Many students want to learn Kali Linux free of cost. If you are one of them then this article is useful for you.

And they start searching online, and they find lots of articles written by multiple experts, These are available online, but most articles are related on how to install Kali Linux, how to use tools of Kali Linux.

There is a big difference between the installation of the Kali Linux and using the Kali Linux tools. The gap is how to use Kali Linux commands already exist in Kali Linux.

kali linux commands basic to advance 2

How to finish Kali Linux using Gap?

In this tutorial I will try to remove that gap, so you can complete your journey from installation to using the tools and get involved in penetration testing. In the last article, I have written about Kali Linux hacker so if you want to know more about Kali Linux you can go there and read about it. otherwise, you have another option to know about Kali Linux go on Official website Kali Linux
Before writing this article I think about lots of factor about commands, and find out that:

Kali Linux commands Categories:

  1. System commands
  2. Tool commands
  3. Switches Or Sub-tools

System Commands in Kali Linux:

System commands are basic commands which are used for a system administration, these commands are helpful to manage the Kali Linux operating system.

You can use these commands to manage another Linux Operating system, for example, Ubuntu, mint, RHEL, etc.

As I have told you in my previous post “Kali Linux system is the combination of Linux OS and Hacking tools”. So all the basic commands are similar to other Linux System.

In this tutorial, I am going to describe basic and advanced Kali Linux commands to manage the operating system.
So good news here, First you will learn basic commands, then you can go for advanced kali Linux commands.

In the sense of meaning, all commands are the same for a normal user, sudo user, and Root user.

Basic Kali Linux commands:

Very basic commands can be used by Normal user. The identification of normal user ‘$’ sign, you can see in the following image vijay@kali:~$.

1# Date Command:

date command is used for checking the current date and time. the date can be changed by running following code

$ date –set=’20 September 2017 13:09′

but the normal user can’t change system time, Then you are thinking about “how to change system time” Of-course I will teach you in this article, dont worry about it.

2# cal command:

Cal command is used to display calendar


3# whoami command:

it is looking something difference command but it is used to tell about you. For example if you forget “which user is logged in?This command will tell you who are you current.


Kali linux commands basic 1

4# pwd command:

it is used for print working directory. It means “On what location you are“. location meaning is here directory and sub-directory. The parent directory is “/” called root directory. A little confusion here, there is another root directory “/root”, this is home directory for root user.

5# ls command:

ls command is used to see files and directory inside a directory. use ‘ls’ to see the files and folders inside current directory. if you want to look up inside another directory, you will have to specify location.


$ls /var

$ls /home/username

6# cd command:

it is very useful command and play very important role for Linux user. this command is used for changed directory. cd /desired/location

If you use blank ‘cd’ without location then you will move in user’s home directory. so see the power of cd commands and enjoy!


$cd ..

$cd /desired/location ($cd /home/vijay)

Kali linux commands basic 2

7# mkdir command:

You have heard 100% about the directory, and “very easy to create a folder in Windows” . The graphical interface is really awesome. Command line interface is the fastest way to operate to Operating System. Linux users love it.

mkdir command is used to create a directory. if want to create a directory within the current directory. just use mkdir ‘directory name’. if you want to create a directory in the desired location then $mkdir /desired/location/directory name.

$mkdir lab

$mkdir /home/vijay/lab1

8# cat command:

These tutorial for hackers, So if you will get access of any computer of drive then you will 100% find some files. so cat command is used to see, edit matter inside file. You can create file and add content inside file.

How is it possible?

Simple use

$cat > ‘New File’ [Create new file or overwrite data on desired file] 

$cat “file name” [See matter inside file]

$ cat >> “file name” [add some data into file] 

Kali linux commands basic use cat

9# cp command:

cp command is used to copy files and folders from one location to another location. or copy in newfile name. This is big command and can be used in difference ways. here you can read more about https://www.computerhope.com/unix/ucp.htm

10# mv command:

If I don’t like files and folders, and want to move in another location. mv command is useful for you.

$mv “file/folder name” /destination/location

mv source location if the file or directory is not exist in current location if the file/folders within current location then us mv file/folder name [space] destination location {destination location = where you want to move}

mv command is also used for rename the file and folder

$mv ‘old filename’ ‘new filename’

11# rm command:

rm command is used to remove file and folder. In another word this command for deleting files and folders.

Kali linux commands basic 3

System Basic Kali Linux commands 

12# uname command:

Do you want to know name of your linux. if yes then use uname command 
The “uname” stands for (Unix Name), display detailed information about the machine name, Operating System and Kernel.


$uname -a


13# uptime command:

this command is used to check how long your system is running. uptime for your system, this command can be used for forensics also.

14# users command:

users command is used to check current logged in user, On my Kali Linux system I have logged in with root user and later I switched to vijay user.

15# Less Command

less command is used for quickly view file. user can page up and down. Press ‘q‘ to quit from less window.

$less /etc/passwd

16#More Command

more command is used for  quickly view file and shows details in percentage. Press up and down arrow for  page up and down. Press ‘q‘ to quit out from more window.

$more /etc/passwd

17# Sort command

You can sort lines of text files in ascending order. with -r options will sort in descending order.

$sort filename.txt [ascending order]

$sort -r filename.txt [descending order]

18#VI Command

Vi is a most popular text editor used for  most of the UNIX-like OS. Here is a great article for vi editor 

19#Free command

Free command shows free, total and swap memory information in bytes.
Free with -t options shows total memory used and available to use in bytes.


$free -t

free-command Kali linux basic

20# history command:

History command is used to check recent running commands. Oh really it is useful because Forgetting is the nature of human. IF you forget previous running command, you can use history command.


history-command in kali linux

System Advanced Kali Linux commands 

1 thought on “Kali Linux commands list – Basic to Advanced with Examples”

Leave a Comment