Home Linux/Unix Top 20 Basic Kali Linux Commands

Top 20 Basic Kali Linux Commands

by TECH DHEE
92 views

In this article, we will learn about the top 20 basic Kali Linux commands. Most beginners who use Kali Linux don’t know about basic commands used in it. These basic commands is used in every Linux distribution no matter which Linux distro you choose.

Kali Linux provides the GUI  (Graphical User Interface) to communication you can use it, but we all know about CLI (Command Line Interface) is the best way to communicate with the OS. Here are the top 20 basic Kali Linux commands used every day.

Basic Kali Linux Commands

sudo

This command is used to give the root/superuser privileges to log in users.

syntax:

sudo [command]

su

This command is used for switching the user. If you want to switch users as you want just you have to type the command in terminal.

syntax:

su [username]

Basic Kali Linux Commands su

whoami

This command shows the login user ID where who displays the user’s information who is currently logged in. You can also use the “wcommand to see the logged-in user and what they are doing.

syntax:

whoami

Basic Kali Linux Commands whoami

pwd

This command Displays the current directory where you working in the terminal.

syntax:

pwd

adduser

This command is used for add a new user to the system.

syntax:

adduser [username]

passwd

This command is used to change the user’s password.

syntax:

passwd [User Name]

clear

This command is used to bring the command line on top of the terminal.

syntax:

clear

apt

The apt is a command line utility which is used for installing, updating, removing, searching and managing deb packages on Debian based distributions.

syntax:

sudo apt update && sudo apt upgrade

sudo apt full-upgrade

sudo apt install package1 package2

sudo apt remove package_name

sudo apt purge package_name

sudo apt list

sudo apt search package_name

init

In Linux basically 8 run levels.  A run level is a software configuration under which only a selected group of process exists.  These run levels are defined in /etc/inittab. init can be in one of eight  run  levels.  But mostly used only two commands which is following:

init 0

It is used for shutdown the system.

syntax:

sudo init 0

init 6

This command is used for restart the system.

syntax:

sudo init 6

chsh

The chsh stands for “Change Shell” and it is used to change the login shell.

syntax:

sudo chsh -s /etc/[shell name] [usernamne]

mkdir

The  mkdir stands for “Make Directory”  and it is used to create new folder or directory in your Kali Linux.

syntax:

sudo mkdir [directory name]

ls

The ls (“List“) is a command to list computer file in Linux/Unix. ls lists the files in current working directory.

syntax:

ls

cd

The cd (“Change directory“) command is used for change the current working directory in Linux/Unix. And it is the one of the basic command in the Linux which is working in the terminal.

syntax:

cd [path]

cp

The cp (“Copy“) command is used to copy the file and directories in Linux and Unix system.

syntax:

cp [OPTIONS] [Source Path] [Destination Path]

mv

The mv Move” command is mostly used for move or rename the files and directory in Linux. It is move one or more files or directories from one place to another.

syntax: Moving the Files

mv [OPTIONS] [Source Path] [Destination Path]

syntax: Rename the Files Name

mv [OPTIONS] [Old Name] [New Name]

rm

The rm (“Remove“) command is a command-line utility for removing the files and directories.

syntax:

rm [OPTIONS] [FILES_NAME]

cat

The cat command is mostly used in the Linux. The name of the cat command comes from its functionality to concatenate files. it can read and concatenate files, writing their contents to get output.

syntax:

cat [OPTIONS] [FILES_NAME]

chmod

The chmod (“Change mode”)  command to change the access permissions of files and directories in Linux/Unix.

syntax:

chmod [OPTIONS] [FILES_NAME]

nano

GNU nano is an easy to use command line text editor for Linux and Unix operating system. Nano text editor is pre-installed on most of Linux distros.

syntax:

nano [FILES_NAME]

Saving and Exiting

In the text editor is you want to save the file, press ctrl+o and the hit enter. If file is doesn’t exist, so it will create new after save it.

To exit you have to press the ctrl+x. If there is any unsaved change, so in case it will give the warning otherwise it will exit directly.

history

The history command displays the whole history list with number.

syntax:

history

Conclusion

All these commands used in the Linux distro and working are the same. If you are using Debian based Distro or other Linux distros. And if you are beginners so you have to know the basic commands of the Linux. Good luck!

Important Things To Remember:

The author of this article does not promote any illegal activities It is just for education purpose All the activities provided in this article, YouTube channel, and on the website techdhee.in are only for educational purposes.

If you are using and follow this tutorial for any illegal purpose, techdhee.in can not be responsible for your action.

My purpose is to educate or share the information who have not, how to secure your self from the Internet, and the world of digital.

Also, read the Disclaimer

Finally

Thank you for reading this post and keep connected to TECH DHEE to continue enjoying excellent posts. Share your views about this post in the comment section below. If you still have any queries, throw it in the comment section. If you find this post helpful, don’t hesitate to share this post on your social network. It will only take a moment, and also it is quite easy and useful for others.

Related Topics

Related Posts

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're OK with this, however you can quit if you wish. Accept Read More