In this blog post, we’ll be taking a look at some of the most useful Kali Linux commands. Kali is a versatile and powerful Linux distribution that is packed with security tools. Whether you’re new to Kali or an experienced user, these commands will help you get the most out of your system. So without further ado, let’s take a look at some of the best Kali Linux commands!
Commands | Description |
---|---|
history | This command is used to print the bash history of the current user. |
free | It gives information about the available RAM and the total used and available spaces of physical memory and swap memory with the buffer used by Kernal. |
vi | It is a screen editor used to edit the file. |
sort | It sorts the content of a text file line by line. |
more | It is used to display output in the terminal, one page at a time. |
less | It is used to view the file instead of opening the file. |
date | This command is used to display the system date and time. |
cal | It will display a formatted calendar of the current month. |
whoami | It will print the active user ID. |
pwd | It stands for “Print Working Directory” which prints the name of the working directory. |
ls | It is used to list out all the hidden files of a directory with -an attribute. |
users | It will display the login names of the user currently logged in to the system. |
uptime | It will return you the time for which the system has been up. |
uname | It prints information about the current system. |
rm | It is used to delete files and directories. |
mv | This command moves, or renames, files, and directories on your file system. |
cp | It is used to copy files. |
cat | It is used to view contained files, concatenate files, and redirect output in terminal or files. |
mkdir | It is used to create directories. |
cd | It is used to change or switch the current working directory. |
Examples
If you wanted to move the public zip file to a new folder accessible to download from the browser: mv public.zip folder-name/
Then be able to navigate to that folder: cd folder-name
Then if you wanted to remove the file so no one else can download it: rm public.zip
Listing Directory Content
ls -l | long listing |
ls -a | list hidden files |
ls -r | list in reverse name |
ls -t | list new files first |
ls -rt | list in reverse time (oldest first) |
Linux users know that the command line is where the real power lies. And for those who use Kali Linux, there are all sorts of powerful commands just waiting to be used. I hope that this blog post was useful to find the Kali Linux commands that you needed to know.