Common Kali Linux Commands Overview: June 2015
Common Kali Linux Commands Overview: June 2015
net/publication/303344385
CITATIONS READS
0 67,310
1 author:
Ameer Sameer
University of Babylon
29 PUBLICATIONS 2 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Ameer Sameer on 19 May 2016.
Read (Prophet Muhammad) in the Name of your Lord who created,﴾1﴿ created the
human from a (blood) clot. ﴾2﴿Read! Your Lord is the Most Generous, ﴾3﴿ who
taught by the pen, ﴾4﴿ taught the human what he did not know. ﴾5﴿
1
Common use A-Z of Kali Linux commands are here below :
(A)
apropos Search Help manual pages (man -k)
(B)
bg Send to background
(C)
cal Display a calendar
2
cat Concatenate and print (display) the content of files
cd Change Directory
(D)
date Display or change the date time
dc Desk Calculator
3
dd Convert and copy a file, write disk headers, boot records
(E)
4
exit Exit the shell
(F)
5
fuser Identify/kill the process that is accessing a file
(G)
(H)
hash Remember the full pathname of a name argument
(I)
6
ifup Start a network interface up
(J)
(K)
(L)
7
lprintq List the print queue
(M)
(N)
8
nohup Run a command immune to hangups
(O)
op Operator access
(P)
ps Process status
(Q)
9
quotacheck Scan a file system for disk usage
(R)
(S)
11
select Accept keyboard input
(T)
11
tail Output the last part of file
(U)
12
unexpand Convert spaces to tabs
(v)
vi Text Editor
(w)
13
whereis Search the user's $path, man pages and source files for a
program
(x)
Some Exanples:
Command: ls
The command “ls” stands for (List Directory Contents), List the contents
of the folder, be it file or folder, from which it runs. The most common
options are -a (all files) and -l (long or details) Tab completion is
supported and may be configured with .inputrc
When output to file the files are listed one per line. By default, colour is
not used to distinguish types of files. That is equivalent to using --
color=none. Using the --color option without the optional WHEN
argument is equivalent to using --color=always. With --color=auto, color
codes are output only if standard output is connected to a terminal (tty).
14
Command: lsblk
The “lsblk” stands for (List Block Devices), print block devices by their
assigned name (but not RAM) on the standard output in a tree-like
fashion.
he “lsblk -l” command list block devices in „list„ structure (not tree like
fashion).
Note: lsblk is very useful and easiest way to know the name of New Usb
Device you just plugged in, especially when you have to deal with
disk/blocks in terminal.
Command: sudo
he “sudo” (super user do) command allows a permitted user to execute a
command as the superuser or another user, as specified by the security
policy in the sudoers list.
exp: root@Kali:~# sudo add-apt-repository ppa:tualatrix/ppa
Command: chmod
The Linux “chmod” command stands for (change file mode bits). chmod
changes the file mode (permission) of each given file, folder, script, etc..
according to mode asked for.
Read (r)=4
Write(w)=2
Execute(x)=1
Now permission need to be set for 3 kinds of user and usergroup. The
first is owner, then usergroup and finally world.
rwxr-x--x abc.sh
16
To change its permission and provide read, write and execute permission
to owner, group and world.
read, write and execute to owner and only execute to group and world.
Note: one of the most important command useful for sysadmin and user
both. On a multi-user environment or on a server, this command comes to
rescue, setting wrong permission will either makes a file inaccessible or
provide unauthorized access to someone.
Command: tar
Command: cp
The “copy” stands for (Copy), it copies a file from one location to another
location.
Command: mv
17
The “mv” command moves a file from one location to another location.
Command: pwd
root@Kali:~# pwd
/home/user/Desktop
Command: cd
Finally, the frequently used “cd” command stands for (change directory),
it change the working directory to execute, copy, move write, read, etc.
from terminal itself.
root@Kali:~# cd /home/user/Desktop
server@localhost:~$ pwd
/home/user/Desktop
18
https://www.researchgate.net/profile/Ameer_Sameer
https://www.linkedin.com/in/ameer-sameer-452693107
http://www.slideshare.net/AmeerSameer
http://facebook.com/ameer.Mee/
19