Cyber Security

Top Basic Kali Linux Commands

Top Basic Kali Linux Commands

Kali Linux is an advanced open source Penetration Testing Linux distribution developed by Offensive Security.  It contains a bunch of security tools divided by categories for Penetration Testing or Ethical Hacking in a practical environment to test the reliability and security of the systems in the unusual situations.

1. Date Command

Used to display the system date and time. With this command, you can also set a custom date by typing the below command in your terminal.

Syntax – “date –set=’24 Apr 2018 19:10′

2. Cal Command

This command simply displays a formatted calendar of the current month in your terminal screen.

3. whoami Command

The whoami command simply prints the effective user ID whereas who command prints the information about users who are currently logged in.

You can also use the “w” command to see who is logged on and what they are doing on the system.

4. pwd Command

pwd stands for “Print Working Directory” which simply prints the name of the working directory or you can directly use the below command to use pwd.

Syntax – “/bin/pwd”

5. ls Command

This command is one of the most useful commands in Kali Linux that lists directory contents of files and directories. With ls command, you can easily list out all hidden files in a directory with -a attribute and for more detailed output you can use -l attribute.

6. cd Command

The cd command is also known as chdir (Change Directory) is a command used to change/switch the current working directory.

7. mkdir Command

The command used for creating directories is mkdir. For example, if you want to create a directory under Desktop called techchains, open a terminal and type the following command:

Command: mkdir /root/Desktop/techchains

8. cat Command

The cat (concatenate) command is one of the most frequently used command in Kali Linux which allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files.

Generally, the cat command is used for displaying the contents of a file.

9. cp Command

This command is used to copy files or group of files or directory which creates an exact image of a file on a disk with a different file name.

10. mv Command

The mv command moves, or renames, files and directories on your file system.

11. rm Command

The rm (remove) command is used to delete files. When used recursively, it may be used to delete directories.

The removal process unlinks a file name in a file system from its associated data, and marks that space on the storage device as usable by future writes. In other words, when you remove a file, the data in the file isn’t changed, but it’s no longer associated with a filename.

12. users Command

This command display login names of users currently logged in on the system.

Similar Articles

 

 

Tags

Collins Kipkemboi Korir

Techie, Software Engineer, Web developer, founder of Techchains, Cyber Security, #tech & #infosec Blogger, Ethical Hacker

Related Articles

Leave a Reply

Close