- 1 Kali Linux commands list – Basic to Advanced with Examples
- 2 System commands in Kali Linux:
- 2.1 Date Command
- 2.2 cal command
- 2.3 whoami command
- 2.4 pwd command
- 2.5 ls command
- 2.6 cd command
- 2.7 mkdir command
- 2.8 cat command
- 2.9 cp command
- 2.10 mv command
- 2.11 rm command
- 2.12 uname command
- 2.13 uptime command
- 2.14 customers command
- 2.15 Less Command
- 2.16 More Command
- 2.17 Sort command
- 2.18 VI Command
- 2.19 Free command
- 2.20 historical past command:
- 2.21 Kali Linux commands list – Basic to Advanced with Examples
- 3 A-Z Kali Linux Commands — Also Included Kali Commands PDF
- 3.1 All Kali Linux Commands
- 3.2 1. Date Command
- 3.3 2. Cal Command –
- 3.4 three. whoami Command –
- 3.5 four. pwd Command –
- 3.6 5. ls Command –
- 3.7 6. cd Command –
- 3.8 7. mkdir Command –
- 3.9 eight. cat Command –
- 3.10 9. cp Command –
- 3.11 10. mv Command –
- 3.12 11. rm Command –
- 3.13 12. uname Command –
- 3.14 13. uptime Command –
- 3.15 14. customers Command –
- 3.16 15. much less Command –
- 3.17 16. extra Command –
- 3.18 17. type Command –
- 3.19 18. vi Command –
- 3.20 19. free Command –
- 3.21 20. historical past Command –
- 3.22 Basic Kali Linux Commands PDF Download
Kali Linux commands list – Basic to Advanced with Examples
Easiest manner to use Kali Linux by commands however it is best to know there are millions of the Kali Linux commands. And the largest downside for the brand new consumer to find out about these commands.
System commands in Kali Linux:
System commands are fundamental commands that are used for a system administration, these commands are useful to handle system. Not solely in Kali Linux System, you may handle one other Linux system simply by utilizing these commands for instance Ubuntu, mint, RHEL and many others. And these commands are additionally used to handle Linux system.
date command is used for checking present date and time. date may be modified by working following code
$ date –set=’20 serptember 2019 13:09′
however regular consumer can’t change system time, Then you might be desirous about “how to change system time” Of-course I’ll educate you on this article, dont fear about it.
Cal command is used to show calendar
it’s wanting one thing distinction command however it’s used to inform about you. For instance when you neglect “which consumer is logged in?“. This command will let you know who’re you present.
it’s used for print working listing. It means “On what location you might be“. location which means is right here listing and sub-listing. The mother or father listing is “/” known as root listing. Somewhat confusion right here, there’s one other root listing “/root”, that is residence listing for root consumer.
ls command is used to see recordsdata and listing inside a listing. use ‘ls’ to see the recordsdata and folders inside present listing. if you’d like to lookup inside one other listing, you should have to specify location.
it is vitally helpful command and play crucial position for Linux consumer. this command is used for modified listing. cd /desired/location
If you utilize clean ‘cd’ with out location then you’ll transfer in consumer’s residence listing. so see the ability of cd commands and luxuriate in!
$cd /desired/location ($cd /residence/vijay)
You have heard 100% about listing, and “very simple to create folder in Windows” . Graphical interface is absolutely superior. Command line interface is quickest manner to function to Operating System. Linux customers adore it.
mkdir command is used to create listing. if need to create listing inside present listing. simply use mkdir ‘listing identify’. if you’d like to create listing in desired location then $mkdir /desired/location/listing identify.
These tutorial for hackers, So if you’re going to get entry of any pc of drive then you’ll 100% discover some recordsdata. so cat command is used to see, edit matter inside file. You can create file and add content material inside file.
How is it potential?
$cat > ‘New File’ [Create new file or overwrite data on desired file]
$cat “file identify” [See matter inside file]
$ cat >> “file identify” [add some data into file]
cp command is used to copy recordsdata and folders from one location to one other location. or copy in newfile identify. This is large command and can be utilized in distinction methods.
If I don’t like recordsdata and folders, and wish to transfer in one other location. mv command is helpful for you.
$mv “file/folder identify” /vacation spot/location
mv supply location if the file or listing just isn’t exist in present location if the file/folders inside present location then us mv file/folder identify [space] vacation spot location
mv command can be used for rename the file and folder
$mv ‘outdated filename’ ‘new filename’
rm command is used to take away file and folder. In one other phrase this command for deleting recordsdata and folders.
Do you need to know identify of your linux. if sure then use uname command
The “uname” stands for (Unix Name), show detailed details about the machine identify, Operating System and Kernel.
this command is used to test how lengthy your system is working. uptime to your system, this command can be utilized for forensics additionally.
customers command is used to test present logged in consumer, On my Kali Linux system I’ve logged in with root consumer and later I switched to vijay consumer.
much less command is used for shortly view file. consumer can web page up and down. Press ‘q‘ to give up from much less window.
$much less /and many others/passwd
extra command is used for shortly view file and reveals particulars in share. Press up and down arrow for web page up and down. Press ‘q‘ to give up out from extra window.
$extra /and many others/passwd
You can type traces of textual content recordsdata in ascending order. with -r choices will type in descending order.
$type filename.txt [ascending order]
$type -r filename.txt [descending order]
Vi is a hottest textual content editor used for many of the UNIX-like OS. Here is a good article for vi editor
Free command reveals free, complete and swap reminiscence info in bytes.
Free with -t choices reveals complete reminiscence used and out there to use in bytes.
historical past command:
History command is used to test latest working commands. Oh actually it’s helpful as a result of Forgetting is the character of human. IF you neglect earlier working command, you should utilize historical past command.
Kali Linux commands list – Basic to Advanced with Examples
A-Z Kali Linux Commands — Also Included Kali Commands PDF
Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security Ltd. Mati Aharoni, Devon Kearns and Raphaël Hertzog are the core builders. Kali Linux can run natively when put in on a pc’s arduous disk, may be booted from a reside CD or reside USB, or it may run inside a digital machine. It is a supported platform of the Metasploit Project’s Metasploit Framework, a device for creating and executing safety exploits.
All Kali Linux Commands
Here beneath we’re itemizing A-Z Kali Linux commands which is able to assist you to to ease of circulate in work.
|Kali Linux commands||Function|
|apropos||Search Help handbook pages (man -k)|
|apt-get||Search for and set up software program packages (Debian)|
|aptitude||Search for and set up software program packages (Debian)|
|awk||Find and Replace textual content, database type/validate/index|
|basename||Strip listing and suffix from filenames|
|bash||GNU Bourne-Again Shell|
|bc||Arbitrary precision calculator language|
|bg||Send to background|
|break||Exit from a loop|
|builtin||Run a shell builtin|
|bzip2||Compress or decompress named recordsdata|
|cal||Display a calendar|
|case||Conditionally carry out a command|
|cat||Concatenate and print (show) the content material of recordsdata|
|cfdisk||Partition desk manipulator for Linux|
|chgrp||Change group possession|
|chmod||Change entry permissions|
|chown||Change file proprietor and group|
|chroot||Run a command with a distinct root listing|
|chkconfig||System providers (runlevel)|
|cksum||Print CRC checksum and byte counts|
|clear||Clear terminal display screen|
|cmp||Compare two recordsdata|
|comm||Compare two sorted recordsdata line by line|
|command||Run a command – ignoring shell capabilities|
|proceed||Resume the subsequent iteration of a loop|
|cp||Copy a number of recordsdata to one other location|
|cron||Daemon to execute scheduled commands|
|crontab||Schedule a command to run at a later time|
|csplit||Split a file into context-decided items|
|reduce||Divide a file into a number of components|
|date||Display or change the date and time|
|dd||Convert and duplicate a file, write disk headers, boot data|
|ddrescue||Data restoration device|
|declare||Declare variables and provides them attributes|
|df||Display free disk house|
|diff||Display the variations between two recordsdata|
|diff3||Show variations amongst three recordsdata|
|dir||Briefly list listing contents|
|dircolors||Colour setup for `ls’|
|dirname||Convert a full pathname to only a path|
|dirs||Display list of remembered directories|
|dmesg||Print kernel & driver messages|
|du||Estimate file house utilization|
|echo||Display message on display screen|
|egrep||Search recordsdata for traces that match an prolonged expression|
|eject||Eject detachable media|
|allow||Enable and disable builtin shell commands|
|ethtool||Ethernet card settings|
|eval||Evaluate a number of commands/arguments|
|exec||Execute a command|
|exit||Exit the shell|
|anticipate||Automate arbitrary functions accessed over a terminal|
|broaden||Convert tabs to areas|
|export||Set an surroundings variable|
|false||Do nothing, unsuccessfully|
|fdformat||Low-level format a floppy disk|
|fdisk||Partition desk manipulator for Linux|
|fg||Send job to foreground|
|fgrep||Search recordsdata for traces that match a set string|
|file||Determine file sort|
|discover||Search for recordsdata that meet a desired standards|
|fmt||Reformat paragraph textual content|
|fold||Wrap textual content to match a specified width|
|for||Expand phrases, and execute commands|
|format||Format disks or tapes|
|free||Display reminiscence utilization|
|fsck||File system consistency test and restore|
|ftp||File Transfer Protocol|
|operate||Define Function Macros|
|fuser||Identify/kill the method that’s accessing a file|
|gawk||Find and Replace textual content inside recordsdata|
|getopts||Parse positional parameters|
|grep||Search recordsdata for traces that match a given sample|
|groupadd||Add a consumer safety group|
|groupdel||Delete a gaggle|
|groupmod||Modify a gaggle|
|teams||Print group names a consumer is in|
|gzip||Compress or decompress named recordsdata|
|hash||Remember the complete pathname of a reputation argument|
|head||Output the primary a part of recordsdata|
|assist||Display assist for a constructed-in command|
|historical past||Command History|
|hostname||Print or set system identify|
|iconv||Convert the character set of a file|
|id||Print consumer and group id’s|
|if||Conditionally carry out a command|
|ifconfig||Configure a community interface|
|ifdown||Stop a community interface|
|ifup||Start a community interface up|
|import||Capture an X server display screen and save the picture to file|
|set up||Copy recordsdata and set attributes|
|jobs||List lively jobs|
|be a part of||Join traces on a typical area|
|kill||Stop a course of from working|
|killall||Kill processes by identify|
|much less||Display output one display screen at a time|
|let||Perform arithmetic on shell variables|
|ln||Create a symbolic hyperlink to a file|
|logname||Print present login identify|
|logout||Exit a login shell|
|look||Display traces starting with a given string|
|lpc||Line printer management program|
|lpr||Off line print|
|lprint||Print a file|
|lprintd||Abort a print job|
|lprintq||List the print queue|
|lprm||Remove jobs from the print queue|
|ls||List details about recordsdata|
|lsof||List open recordsdata|
|make||Recompile a gaggle of packages|
|mkdir||Create new folders|
|mkfifo||Make FIFOs (named pipes)|
|mkisofs||Create an hybrid ISO9660/JOLIET/HFS filesystem|
|mknod||Make block or character particular recordsdata|
|extra||Display output one display screen at a time|
|mount||Mount a file system|
|mtools||Manipulate MS-DOS recordsdata|
|mtr||Network diagnostics (traceroute/ping)|
|mv||Move or rename recordsdata or directories|
|mmv||Mass Move and rename recordsdata|
|good||Set the precedence of a command or job|
|nl||Number traces and write recordsdata|
|nohup||Run a command immune to hangups|
|notify-ship||Send desktop notifications|
|nslookup||Query Internet identify servers interactively|
|open||Open a file in its default software|
|passwd||Modify a consumer password|
|paste||Merge traces of recordsdata|
|pathchk||Check file identify portability|
|ping||Test a community connection|
|pkill||Stop processes from working|
|popd||Restore the earlier worth of the present listing|
|pr||Prepare recordsdata for printing|
|printcap||Printer functionality database|
|printenv||Print surroundings variables|
|printf||Format and print information|
|pushd||Save after which change the present listing|
|pwd||Print Working Directory|
|quota||Display disk utilization and limits|
|quotacheck||Scan a file system for disk utilization|
|quotactl||Set disk quotas|
|ram||ram disk system|
|rcp||Copy recordsdata between two machines|
|learn||Read a line from customary enter|
|readarray||Read from stdin into an array variable|
|readonly||Mark variables/capabilities as readonly|
|reboot||Reboot the system|
|renice||Alter precedence of working processes|
|remsync||Synchronize distant recordsdata by way of e mail|
|return||Exit a shell operate|
|rev||Reverse traces of a file|
|rsync||Remote file copy (Synchronize file timber)|
|display screen||Multiplex terminal, run distant shells by way of ssh|
|scp||Secure copy (distant file copy)|
|sdiff||Merge two recordsdata interactively|
|choose||Accept keyboard enter|
|seq||Print numeric sequences|
|set||Manipulate shell variables and capabilities|
|sftp||Secure File Transfer Program|
|shift||Shift positional parameters|
|shutdown||Shutdown or restart linux|
|sleep||Delay for a specified time|
|type||Sort textual content recordsdata|
|supply||Run commands from a file|
|break up||Split a file into mounted-dimension items|
|ssh||Secure Shell consumer (distant login program)|
|strace||Trace system calls and indicators|
|su||Substitute consumer identification|
|sudo||Execute a command as one other consumer|
|sum||Print a checksum for a file|
|droop||Suspend execution of this shell|
|symlink||Make a brand new identify for a file|
|sync||Synchronize information on disk with reminiscence|
|tail||Output the final a part of file|
|tee||Redirect output to a number of recordsdata|
|check||Evaluate a conditional expression|
|time||Measure Program working time|
|instances||User and system instances|
|contact||Change file timestamps|
|high||List processes working on the system|
|traceroute||Trace Route to Host|
|lure||Run a command when a sign is ready(bourne)|
|tr||Translate, squeeze, and/or delete characters|
|true||Do nothing, efficiently|
|tty||Print filename of terminal on stdin|
|sort||Describe a command|
|ulimit||Limit consumer sources|
|umask||Users file creation masks|
|umount||Unmount a tool|
|unalias||Remove an alias|
|uname||Print system info|
|unexpand||Convert areas to tabs|
|items||Convert items from one scale to one other|
|unset||Remove variable or operate names|
|unshar||Unpack shell archive scripts|
|till||Execute commands (till error)|
|useradd||Create new consumer account|
|usermod||Modify consumer account|
|customers||List customers at present logged in|
|uuencode||Encode a binary file|
|uudecode||Decode a file created by uuencode|
|v||Verbosely list listing contents (`ls -l -b’)|
|vdir||Verbosely list listing contents (`ls -l -b’)|
|vmstat||Report digital reminiscence statistics|
|wait||Wait for a course of to full|
|watch||Execute/show a program periodically|
|wc||Print byte, phrase, and line counts|
|whereis||Search the consumer’s $path, man pages and supply recordsdata for a program|
|which||Search the consumer’s $path for a program file|
|who||Print all usernames at present logged in|
|whoami||Print the present consumer id and identify (`id -un’)|
|wget||Retrieve internet pages or recordsdata by way of HTTP, HTTPS or FTP|
|write||Send a message to one other consumer|
|xargs||Execute utility, passing constructed argument lists|
|xdg-open||Open a file or URL within the consumer’s most popular software|
|sure||Print a string till interrupted|
Now all Kali Linux commands and for future reference we additionally included a Kali commands PDF for you. Print it out to information via Kali Linux whereas your offline.
Kali Linux is an open supply working system developed by Offensive Security . It incorporates a bunch of safety instruments divided by classes for Penetration Testing or Ethical Hacking in a sensible surroundings to check the reliability and safety of the techniques within the uncommon conditions.
1. Date Command
This command is usually used to show the system date and time. You may also set a customized date by typing the beneath command in your terminal.
Syntax – “date –set=’2 Apr 2018 16:10′
2. Cal Command –
The cal command merely shows a formatted calendar of present month in your terminal display screen. If in case, you want a complicated model of cal, then it’s also possible to obtain ncal package deal in your Linux machine which shows the calendar vertically together with extra choices.
three. whoami Command –
The whoami command merely prints the efficient consumer ID the place as who command prints the details about customers who’re at present logged in.
You may also use the “w” command to see who’s logged on and what they’re doing.
four. pwd Command –
pwd stands for “Print Working Directory” which merely prints the identify of the working listing or you may straight use the beneath command to use pwd.
Syntax – “/bin/pwd”
5. ls Command –
This command is without doubt one of the most helpful command in Kali Linux that lists listing contents of recordsdata and directories. With ls command, you may simply list out all hidden recordsdata of a listing with -a attribute and for extra detailed output you should utilize -l attribute.
Syntax: ls -al
6. cd Command –
The cd command also referred to as chdir (Change Directory) is a command used to change/swap the present working listing.
7. mkdir Command –
The command used for creating directories is mkdir. For instance, if you’d like to create a listing beneath Desktop known as yb, open a terminal and kind the next command:
Command: mkdir /root/Desktop/yb
eight. cat Command –
The cat (concatenate) command is without doubt one of the most ceaselessly used command in Kali Linux which permits us to create single or a number of recordsdata, view comprise of file, concatenate recordsdata and redirect output in terminal or recordsdata.
Generally, the cat command is used for displaying the contents of a file.
9. cp Command –
This command is used to copy recordsdata or group of recordsdata or listing which creates an actual picture of a file on a disk with completely different file identify.
10. mv Command –
The mv command strikes, or renames, recordsdata and directories in your file system.
11. rm Command –
The rm (take away) command is used to delete recordsdata. When used recursively, it could be used to delete directories.
The removing course of unlinks a file identify in a file system from its related information, and marks that house on the storage system as usable by future writes. In different phrases, once you take away a file, the info within the file isn’t modified, but it surely’s not related to a filename.
12. uname Command –
This command prints the details about the present system. The uname command inside Linux permits you to view system details about your Linux surroundings.
With uname -a command, which provides you extra details about the system like Kernel Name, Node Name, Kernel Release, Kernel Version, Machine, Processor, Hardware Platform and Operating system.
13. uptime Command –
The uptime command offers you the time for which the system has been up (or working). Uptime’s fundamental utilization could be very simple – simply write the command’s identify and press enter.
In case you simply need to know the time for which the system has been up, and that too in a extra human-readable format, use the -p command line possibility.
14. customers Command –
This command show login names of customers at present logged in on system.
15. much less Command –
much less command is used to view recordsdata as a substitute of opening the file. The much less command is taken into account to be a extra highly effective model of the “extra” command which is used to show info to the terminal one web page at a time.
You can view any textual content file utilizing the much less command just by typing the next right into a terminal window:
Command: much less /and many others/passwd
16. extra Command –
The extra command permits you to show output within the terminal one web page at a time. This is particularly helpful when working a command which causes quite a lot of scrolling such because the ls command or the du command.
The extra command works with any software that outputs to the display screen. A great way of testing that is to sort the next right into a terminal window:
Command: extra /and many others/passwd
17. type Command –
Sort command types the contents of a textual content file, line by line. Sort is a normal command line program that print the traces of its enter or concatenation of all recordsdata listed in its argument list in sorted order.
With -r swap, you may type the contents of any file in reverse order.
18. vi Command –
The vi editor is a display screen editor which is offered on virtually all UNIX techniques. In common, vi has two modes: the command mode and the insert mode.
To start getting into textual content in an empty file, you have to first change from the command mode to the insert mode. To do that, sort the letter i. When you begin typing, something you sort will likely be entered into the file.
Type a number of quick traces and hit Return on the finish of every of line. Unlike phrase processors, vi doesn’t use phrase wrap. It will break a line on the fringe of the display screen. If you make a mistake, you should utilize the Backspace key to take away your errors. If the Backspace key doesn’t work correctly in your system, strive utilizing the Ctrl h key mixture.
19. free Command –
free is a command which can provide us beneficial info on out there RAM in Linux machine. It additionally offers details about complete used and out there house of bodily reminiscence and swap reminiscence with buffers utilized by kernel.
Free command with -t possibility, will list the entire line on the finish.
20. historical past Command –
One of the extensively used command in Kali Linux is historical past command. The bash shell shops a historical past of commands entered, which can be utilized to repeat commands by utilizing the historical past command.
In easy method, you may run the historical past command by itself and can merely print out the bash historical past of present consumer to the display screen as proven beneath:
Have one thing to say about this text? Comment beneath or share it with us on Facebook or Twitter.