🛡 Kali Linux Command Line Laboratory

This lab provides the most important Kali Linux commands used in cybersecurity, penetration testing, and system administration.

1. Basic Navigation Commands

pwd
ls -la
cd /etc
clear

Exercise

Simulation

kali@kali:~$ cd /var/log
kali@kali:/var/log$ ls -la
kali@kali:/var/log$ cd ~

2. File and Directory Management

mkdir testlab
touch file1.txt
cp file1.txt backup.txt
mv backup.txt /tmp/
rm file1.txt

Exercise

3. Permissions & Ownership

ls -l
chmod 755 script.sh
chown root:root script.sh

Exercise

4. User & System Information

whoami
id
uname -a
hostname

Exercise

Identify kernel version and CPU architecture.

5. Networking Commands (Reconnaissance)

ip a
ip route
ping -c 4 google.com
netstat -tulnp

Exercise

6. Process Management

ps aux
top
htop
kill -9 PID

Exercise

Identify the process consuming the most memory.

7. Package Management

apt update
apt upgrade
apt install nmap

Exercise

Search for a password cracking tool.

8. Security & Pentesting Commands

nmap -sV 192.168.1.1
hydra -l admin -P passwords.txt ssh://192.168.1.10
msfconsole

Exercise

Perform a service version scan on a local test VM.