top of page

Important Commands in Kali

  • Basic.hacking
  • Feb 23, 2020
  • 3 min read

Updated: Feb 24, 2020

So I thought some of you might want to learn how to use the terminal a bit better so here comes a list of important commands(in alphabetical order), I will keep editing in more commands and if you wonder about some special just tell me and I will add it to the list. Further down I will also add some small explanation on other things you might run into.

./[file name] ~ Is to run an executable file ex. "./Veil" will run the file Veil.

--help ~ To get help in the terminal but also works with a command to get help about how to use it ex. "cd --help". It will tell you what you can do with the command cd. On what you can add to the command and so on.

apt-get install [program you want to install] ~ To install a program ex. "apt-get install terminator". This will install the program terminator.

apt-get update ~ Should be used before every download with apt-get install. To make sure all the programs in the database are up to date.

cd .. ~ If you want to go back do the last directory.

cd [followed by the directory you want to enter] ~ To go to a directory ex. "cd Desktop".

clear ~ To clear the terminal from all text.

cp [Filename] -t [Wanted location] ~ This is the copy-paste function in terminal used as in ex. "cp myfile.txt -t /var/www/html/text". This will copy the file "myfile.txt" to the directory "/var/www/html/text".

find ./ -name [name of the file] -print ~ This is for searching for a file, this is a powerful command that will look through the whole computer for this certain file ex. "find ./ -name spotify.exe -print" This will finde where the file "spoitify.exe" is stored.

kali-undercover ~ This will make kali look similar to windows which will make it less obvious that you are using a hacking machine.

ls ~ used to see what directories, programs or files there is in the directory you are in.

man [followed by a command] ~ This will give a manual on how to use a command ex. "man apt-get" will tell you how to use apt-get.

mkdir [Wanted name] ~ This is to add a directory ex. "mkdir new_directory".

pwd ~ Prints working directory (tells which directory you are in).

rm [Filename] ~ This is used to remove a file, this can be used to remove a directory also and a ton of other stuff, so just type "rm --help" to see all options. Used as: "rm myfile.txt".

sudo ~ This is the command to get root access. This means that you get all privileges to a command. It is like the windows "run as admin" button.


Common endings on files:

.c ~ This is a c script.

.cgi ~ This is a Perl script.

.com ~ MS-DOS command file

.cpp ~ This is a c++ script.

.doc ~ This is files mostly used by Microsoft.

.docx ~ This is files mostly used by Microsoft.

.exe ~ This is an executable file.

.js ~ This is a javascript.

.jpg ~ This is an image.

.mp3 ~ This is a sound file.

.odt ~ This is a file that is used by a large number of programs.

.pl ~ This is a Perl script.

.ppt ~ This is used by Microsoft PowerPoint.

.png ~ This is an image.

.py ~ This is a python script.

.sh ~ This is a bash script.

.txt ~ This is just a normal text file.

.xls ~ This is used by Microsoft excel.

Recent Posts

See All

Comments


hacking.jpg

Hacking

Hacking has been around for a long time. As in most other things, there is different types of hackers. There are White hat, Gray hat, and Black hat hackers. The White hat hackers...

 

Read More

 

Join Mailing List

Thanks for submitting!

"Hacking is the only key to freedom"

                                        

                                            -Unknown

bottom of page