kali linux commands basic to advance

Kali Linux commands list – Basic to Advanced with Examples

module 3 Basic of Kali

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 tutorial I am going to cover how to use Kali Linux commands exactly without knowing anything about tool.
I know many of the students who want to learn Kali Linux free of cost, and they start searching here, there and online, finally they find lots of articles available but most articles are related how to install Kali Linux, how to use tools of Kali Linux. There is a big using gap between the installation of the Kali Linux and using of the Kali Linux tools. The gap is how to use commands exist already exist in Kali Linux.

Related Post: best laptop for machine learning

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:

We can divide commands in three 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 system. Not only in Kali Linux System, you can manage another Linux system easily by using these commands for example Ubuntu, mint, RHEL etc. And these commands are also used to manage Linux system. As I have told you in my previous post “Kali Linux system is the combination of Linux OS and tools”. So all the basic commands are similar to other Linux System.

In this tutorial I am going to describe about basic and advanced commands for manage operating system.
So good news here, First learn about basic commands, these commands can be used by all users. In the sense of meaning, all commands are same for 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 current date and time. date can be changed by running following code

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

but 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

$cal

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.

$whoami

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

$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 ..

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

Kali linux commands basic 2

7# mkdir command:


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

mkdir command is used to create directory. if want to create directory within current directory. just use mkdir ‘directory name’. if you want to create directory in 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

$uname -a

uname-command

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

$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

history-command in kali linux

System Advanced Kali Linux commands 

 

Vijay Kumar

Ethical Hacking & Penetration Testing Trainer, For more detail view My Profile

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

Leave a Reply

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