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
This command is used to give the root/superuser privileges to log in users.
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.
This command shows the login user ID where who displays the user’s information who is currently logged in. You can also use the “w” command to see the logged-in user and what they are doing.
This command Displays the current directory where you working in the terminal.
This command is used for add a new user to the system.
This command is used to change the user’s password.
passwd [User Name]
This command is used to bring the command line on top of the terminal.
The apt is a command line utility which is used for installing, updating, removing, searching and managing deb packages on Debian based distributions.
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
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:
It is used for shutdown the system.
sudo init 0
This command is used for restart the system.
sudo init 6
The chsh stands for “Change Shell” and it is used to change the login shell.
sudo chsh -s /etc/[shell name] [usernamne]
The mkdir stands for “Make Directory” and it is used to create new folder or directory in your Kali Linux.
sudo mkdir [directory name]
The ls (“List“) is a command to list computer file in Linux/Unix. ls lists the files in current working directory.
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.
The cp (“Copy“) command is used to copy the file and directories in Linux and Unix system.
cp [OPTIONS] [Source Path] [Destination Path]
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]
The rm (“Remove“) command is a command-line utility for removing the files and directories.
rm [OPTIONS] [FILES_NAME]
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.
cat [OPTIONS] [FILES_NAME]
The chmod (“Change mode”) command to change the access permissions of files and directories in Linux/Unix.
chmod [OPTIONS] [FILES_NAME]
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.
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.
The history command displays the whole history list with number.
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
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.
- How To Make root User Terminal colorful in Kali Linux 2020.1
- Best way to Install Kali Linux 2020.1 on Virtual Box
- How To Get root Access and root Account Login into Kali Linux 2020.1
- Top 10 Kali Linux Tools for Hacking and Penetration Testing
- The First 5 Things to Do After Installing Kali Linux
- How to Install Tor Browser in Kali Linux
- Change root Terminal Color in Kali Linux 2020
- Fix Kali Linux repositories in sources.list file
- Ghost Framework – Control Android Devices Remotely