Kali Linux is a Debian-derived Linux distribution that is specially designed for digital forensics, penetration testing, security auditing, and cybersecurity operations. Kali Linux was developed by Mati Aharoni and Devon Kearns. and It’s controlled and funded by Offensive Security. There is no alternative OS except Kali Linux for cybersecurity operations. In this article, gives you brief documentation about Kali Linux Commands and usage techniques.
Kali Linux Commands and Usage Techniques
You will see basic information about your operating system and system hardware through the uname command. You can learn more about Kernel Name, Node Name, Kernel Release, Kernel Version, Machine, Processor, Hardware Platform, and Operating system through uname -a command. For help, type uname –help and enter.
Command: uname -a | Help: uname –help
Users command is used to find out which user has logged into the system.
whoami command is mainly used to check the user ID. Find out the details using the whoami –help command for help.
Command: whoami | Help: whoami –help
The arch command is used to know about the architecture of a computer system. This command will print things like i386, i486, i586, alpha, arm, m68k, mips, sparc, x86_64, depending on the type of your computer.
date command is used to view the date and time. Type date into the Linux terminal and click Enter to display the current system time and date. It will even show week, month, timezone, and year data.
You can set a custom date and time if you want using this following command.
Command: date –set=’26 Dec 2021 18:10′
also you can find out more information about the Date command by using the date –help command.
The format of the current month can be printed to a terminal with the cal command. If you type cal in the Linux terminal and click enter, a format of the current month will be printed on the Linux terminal.
pwd stands for “Print Working Directory” which means that this command is used to find out which folder or place we are in Linux.
ls command is one of the most commonly used commands in Linux. this command makes it easy to find all the files list and directories in a folder.
To find out all the hidden files in a directory, you have to use the command ls -a. If you type ls –help in the terminal for help, detailed information you’ll get.
Command: ls -a | Help: ls –help
cd means “Change Directory” which means we always have to switch from one directory to another. The cd command is used for switching or changing directories. And cd .. (dot dot) is used to go back to the previous directory.
You can create new directory with the mkdir command. When working on Linux, we often have to create new directories or folders using the mkdir command. A directory named Papel has been created with mkdir then space below.
Command: mkdir Papel
The cat command is used to find out what text is inside a file. The cat> (filename) command is used to create a file.
Command: cat papel.txt
The cp command is used to copy something in Linux. After the cp command, enter the file or directory name and then the file’s destination path and the file will be copied. For help, type cp –help and press Enter.
Command: cp | Help: cp –help
In Linux, the mv command is used to move something from one directory to another.
Command: mv file (destination path)
The rm command is used to remove or delete something in Linux. For help, type rm –help and press Enter. First, type rm and then enter the name of the file, the file will be removed.
Command: rm papel.txt | Help: rm –help
The uptime command is used to determine how long your system has been running. If you want to see the time in human-readable format, you have to use the uptime -p command. For help, type uptime –help and enter.
Command: uptime -p | Help: uptime –help
The sort command is used for line-by-line sorting of the contents of a file. Sort -r is used for reverse sorting. For help, type sort –help and enter.
Command: sort (file) | Help: sort –help
To know the information on how much RAM is free on our Linux machine and how much physical memory has been used can be found using the free command. For help, type free –help and enter.
Command: free | Help: free –help
The dig command is used to check the DNS lookup of a website through the Kali Linux terminal. dig means Domain Information Groper.
Command: dig (site)
This echo command is very important for Kali Linux. It is used to show the print or output of a message.
Command: echo (your message)
apt-get is a package manager used to install, remove, refine, and update packages. apt-get is one of the most important commands in Linux.
Command: apt-get (update/upgrade/install)
The useradd command is used to add a new user account to Kali Linux. First, you have to enter useradd with space and username. Then for the password option, enter the passwd command and enter the password to create a new account.
Command: useradd Papel | Command: passwd papel
This passwd command is used to change any password on your Kali Linux operating system. If you type passwd in the Linux terminal and enter, first the option of New password: will come, where you have to enter your password, then if you enter it, Retype new password: will come again, then if you enter it again with your password, the new password will be set.
New password: (your password)
Retype New password: (your password)
Many files in Kali Linux are zip files and the unzip command is used to unzip all these files. Again, the zip command is used to make a file a zip file.
Command: unzip papel.zip
Command: zip papel.txt new.txt hello.txt
The history command is used to view all the commands that have been worked out using Linux terminal.
The clear command is used to clear/delete all previous commands and outputs on the Kali Linux terminal screen.
Let’s know details about Footprinting and Information Gathering