Kali Linux Basic Commands

@Cyber_In_Verse
2 min readFeb 22, 2024

--

Kali Linux is a popular Linux distribution used primarily for penetration testing and digital forensics. Here are some basic commands you might find useful:

1. pwd: Print Working Directory — Displays the current directory you are in.

pwd

2. ls: List — Lists files and directories in the current directory.

ls

3. cd: Change Directory — Allows you to change your current directory.

cd directory_name

4. mkdir: Make Directory — Creates a new directory.

mkdir directory_name

5. rm: Remove — Deletes files or directories.

rm file_name rm -r directory_name   # To remove a directory and its contents recursively

6. cp: Copy — Copies files or directories.

cp source_file destination cp -r source_directory destination   # To copy a directory and its contents recursively

7. mv: Move — Moves files or directories.

mv source destination

8. cat: Concatenate — Displays the contents of a file.

mv source destination

9. Nano: A simple text editor in the terminal.

nano file_name

10. wget: Download files from the internet.

wget URL

11. ifconfig: Displays information about network interfaces.

ifconfig

12. apt: Advanced Package Tool — Used for package management.

apt update       # Updates the package index apt upgrade      # Upgrades installed packages apt install package_name   # Installs a package apt remove package_name    # Removes a package

These are just a few basic commands to get you started. Kali Linux offers a wide range of tools and commands tailored for penetration testing and security auditing. Make sure to explore the documentation and online resources for more advanced commands and techniques. Additionally, exercise caution when using commands rm as they can permanently delete files. Always double-check your commands before executing them, especially with powerful commands that can have significant consequences.

@Cyber_In_Verse

--

--

@Cyber_In_Verse
@Cyber_In_Verse

No responses yet