⌨️ 50+ Essential Kali Linux Commands for Beginners: Complete Command Cheat Sheet
By Muhammed Sulaiman T (WebDeveloper)
Kali Linux is widely used for cybersecurity education, penetration-testing labs, digital forensics, security auditing and network analysis. But installing Kali Linux is only the beginning. For beginners, one of the biggest challenges is learning how to work confidently with the Linux terminal.
Security tools become much easier to understand when you already know how to navigate directories, create files, manage permissions, inspect processes, install packages, connect to remote systems and troubleshoot networking.
This guide provides a practical collection of essential Kali Linux commands for beginners. Instead of trying to memorize every Linux command, focus on understanding what each command does and when it should be used.
1. pwd — Show Current Directory
pwd
pwd means print working directory. It displays the directory you are currently working in.
2. ls — List Files
ls
For detailed information:
ls -la
The -l option provides detailed information while -a displays hidden files.
3. cd — Change Directory
cd Documents
Move one level upward:
cd ..
Return home:
cd ~
4. mkdir — Create a Directory
mkdir projects
Create nested directories:
mkdir -p projects/python/test
5. touch — Create a File
touch notes.txt
6. cat — Display File Contents
cat notes.txt
7. less — Read Large Files
less largefile.txt
Press q to exit.
8. cp — Copy Files
cp file.txt backup.txt
Copy a directory:
cp -r project project-backup
9. mv — Move or Rename Files
Rename a file:
mv old.txt new.txt
Move a file:
mv file.txt Documents/
10. rm — Remove Files
rm file.txt
Use rm carefully because deleted terminal files may not go to a recycle bin.
11. grep — Search Text
grep "error" logfile.txt
Case-insensitive search:
grep -i "error" logfile.txt
Recursive search:
grep -r "keyword" .
12. find — Find Files
find . -name "test.txt"
Find Python files:
find . -name "*.py"
13. head and tail
Display the beginning of a file:
head file.txt
Display the end:
tail file.txt
Monitor a changing log:
tail -f logfile.txt
14. chmod — Change Permissions
Make a script executable:
chmod +x script.sh
Check permissions:
ls -l script.sh
15. chown — Change Ownership
sudo chown user:user file.txt
Use ownership commands carefully because incorrect permissions can affect applications and system files.
16. whoami — Show Current User
whoami
17. id — Show User Information
id
18. sudo — Run Administrative Commands
sudo apt update
Understand a command before executing it with elevated privileges.
19. apt update
sudo apt update
Refreshes package repository information.
20. apt upgrade
sudo apt upgrade
Updates installed packages.
Install a package:
sudo apt install package-name
Remove a package:
sudo apt remove package-name
Search packages:
apt search keyword
21. ps — View Processes
ps aux
22. top — Monitor Processes
top
This displays running processes and system resource usage.
23. kill — Stop a Process
kill PID
Only terminate processes when you understand what they do.
24. df — Check Disk Space
df -h
25. du — Check Directory Size
du -sh Downloads
26. free — Check RAM
free -h
27. uname — System Information
uname -a
28. ip — Network Information
ip addr
Display routes:
ip route
29. ping — Test Connectivity
ping example.com
Not every server responds to ICMP, so failure does not necessarily mean that the server is offline.
30. curl — Make HTTP Requests
curl https://example.com
curl is useful for testing websites and APIs.
31. wget — Download Files
wget https://example.com/file.zip
Only download software and files from trustworthy sources.
32. ssh — Connect to a Remote Server
ssh username@server-address
Use SSH only to access systems you are authorized to manage.
33. scp — Copy Files Over SSH
scp file.txt username@server:/home/username/
34. history — View Previous Commands
history
Avoid placing passwords, API keys or other secrets directly in commands because they may appear in shell history.
35. clear — Clear the Terminal
clear
36. man — Read Documentation
man ls
Learning how to use manual pages is an important Linux skill.
37. echo
echo "Hello World"
Environment variable example:
echo $PATH
38. env
env
Displays environment variables.
39. which
which python
Shows the location of an executable.
40. whereis
whereis python
Searches for binaries, source files and manual pages associated with a command.
41. Python Version
python3 --version
42. Start Python
python3
Python is useful for automation and security-related scripting in authorized environments.
43. Git Version
git --version
44. Clone a Repository
git clone repository-url
Only clone and use repositories you trust or are authorized to work with.
45. tar — Archive Files
tar -czf backup.tar.gz folder/
Extract:
tar -xzf backup.tar.gz
46. zip and unzip
Create an archive:
zip -r archive.zip folder/
Extract:
unzip archive.zip
47. ss — View Listening Services
ss -tuln
This is useful for inspecting services listening on your own system.
48. systemctl — Manage Services
Check a service:
systemctl status service-name
Start a service:
sudo systemctl start service-name
Stop a service:
sudo systemctl stop service-name
49. nano — Edit Files
nano file.txt
Nano is one of the easiest terminal editors for beginners.
50. vim — Advanced Editing
vim file.txt
Vim has a steeper learning curve but is powerful for advanced users.
Best Way to Learn Kali Linux Commands
Do not try to memorize all 50 commands at once. Start with navigation and file management, then learn permissions, package management, processes and networking.
A good learning order is:
- pwd, ls, cd
- mkdir, touch, cat
- cp, mv, rm
- grep, find
- chmod, chown
- sudo and apt
- ps, top, df and free
- ip, ping and curl
- ssh and scp
- Python and Git
Final Thoughts
Kali Linux is not about memorizing hundreds of hacking commands. The strongest beginners first understand Linux itself.
Learn the operating system, networking, permissions, processes and scripting before moving into advanced security tooling. These fundamentals make cybersecurity tools much easier to understand and use responsibly.
Frequently Asked Questions
What are the most important Kali Linux commands for beginners?
Start with pwd, ls, cd, mkdir, touch, cat, cp, mv, rm, grep, find, chmod, sudo, apt, ip, ping and ssh.
Where can I learn Kali Linux commands?
The Linux terminal itself is one of the best places to practice. Use man pages, authorized labs and beginner-friendly Linux exercises.
What command updates Kali Linux?
Use sudo apt update to refresh package information and sudo apt upgrade to update installed packages.
Is Kali Linux difficult for beginners?
Kali Linux can seem difficult initially, but learning basic Linux commands first makes the environment much easier to understand.
Can Kali Linux commands be used on other Linux distributions?
Most standard Linux commands work across many Linux distributions, although package-management commands and some security tools may differ.
Like what you read? I also build production systems for businesses.
Let's work together