Useful Linux Commands for Kali Linux

Before you start to use Kali Linux, know to some basic and useful linux commands will help you.

Let’s start with following commands. I will also update this commands continuously.

Firstly, I will write two commands that used to learn options and details about other commands. Because you can not use almost the all of commands without any argument.

#man <command>

man – manual. It shows all details about command and how it uses.

#<command> –help

–help – It helps you about commands and arguments of commands. It does’t as detailed #man command.

Now, we can look other commands.


pwd – print name of current directory


ls – list directory contents. It can use to list informations about the files ( the current directory by default).


mkdir – make directories. You can create new directories in the current directory, if they don’t already exist.


cd – change the current directory. It can use for change directory.


touch – It is used to change the timestamps (i.e., dates and times of the most recent access and modification) on existing files and directories. It also creates new empty file if it doesn’t exist.

Let’s try these commands:

#nano <filename>

nano – Text editor. It is used to edit/create a file. As soon as you run this command, cursor get into the file. You will see file options too under the command line.

Let’s edit the file that we created before.

After edit/create the file, press ctrl+x for quit. As soon as press ctrl+x, you will see options for quit.

#cat <filename>

cat – concatenate. Allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files.

#more <filename>

more – It is used to display the contents of a file in a console. Difference of more than cat is useful for very large files.

#less <filename>

less – less command allows you to view the contents of a file and navigate through file. The main difference between more and less is that less command is faster because it does not load the entire file at once and allows navigation though file using page up/down keys.

#<command><filename> | grep <word>

grep – It is used to search words according to criterias of you wanted in the file.

#cp <filename><new directory>

cp – copy/paste. It is used to copy and paste files.

#rm <options><filename>

rm – remove. It is used to remove files.


move – It is used to move and rename files.


chmod – The chmod command lets you change the access permissions of files and folders. Below is a list of several numerical permissions that can be set for the user, group, and everyone else on the computer. Next to the number is the read/write/execute letter equivalent.

7, rwx, read, write, and execute
6, rw-, read and write
5, r-x, read and execute
4, r–, read-only
3, -wx, write and execute
2, -w-, write only
1, –x, execute only
0, —, none

example: #chmod 755 <filename>


chown – change owner. It is used to change the owner and group of files, directories and links.

example: #chown user:user file.txt

Be the first to comment

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.