Kali Linux Basic Commands
Kali Linux Basic Commands
=============================================
1. System Update & Upgrade
=============================================
# Update package lists
sudo apt update
=============================================
2. File & Directory Management
=============================================
# List files and directories
ls -la
# Change directory
cd /path/to/directory
# Remove a file
rm filename
=============================================
3. User & Permission Management
=============================================
# Check current user
whoami
# Switch user
su username
=============================================
4. Process Management
=============================================
# Show running processes
ps aux
=============================================
5. Network Commands
=============================================
# Check IP address
ip a
=============================================
6. File Operations & Searching
=============================================
# Find a file by name
find / -name filename 2>/dev/null
=============================================
7. Package Management
=============================================
# Install a package
sudo apt install package_name -y
# Remove a package
sudo apt remove package_name -y
=============================================
8. Ethical Hacking Tools (Examples)
=============================================
# Run Nmap for network scanning
nmap -A 192.168.1.1
=============================================
9. System Monitoring & Logs
=============================================
# Check system uptime
uptime
=============================================
10. Miscellaneous Useful Commands
=============================================
# Show system information
uname -a
# Shutdown system
sudo shutdown -h now
# Restart system
sudo reboot
=============================================
End of Guide
=============================================