0% found this document useful (0 votes)
18 views

Kali Linux Basic Commands

This document is a guide to basic commands and usage for Kali Linux, covering system updates, file management, user permissions, process management, network commands, file operations, package management, ethical hacking tools, system monitoring, and miscellaneous commands. Each section provides specific command examples for various tasks. The guide serves as a comprehensive reference for users looking to navigate and utilize Kali Linux effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Kali Linux Basic Commands

This document is a guide to basic commands and usage for Kali Linux, covering system updates, file management, user permissions, process management, network commands, file operations, package management, ethical hacking tools, system monitoring, and miscellaneous commands. Each section provides specific command examples for various tasks. The guide serves as a comprehensive reference for users looking to navigate and utilize Kali Linux effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Kali Linux - Basic Commands & Usage Guide

=============================================
1. System Update & Upgrade
=============================================
# Update package lists
sudo apt update

# Upgrade installed packages


sudo apt upgrade -y

# Full system upgrade


sudo apt full-upgrade -y

=============================================
2. File & Directory Management
=============================================
# List files and directories
ls -la

# Change directory
cd /path/to/directory

# Go back one directory


cd ..

# Create a new directory


mkdir folder_name

# Remove a file
rm filename

# Remove a directory (with files inside)


rm -rf folder_name

=============================================
3. User & Permission Management
=============================================
# Check current user
whoami

# Switch user
su username

# Change file permissions (Example: Give execute permission)


chmod +x filename

# Change file ownership


chown user:user filename

=============================================
4. Process Management
=============================================
# Show running processes
ps aux

# Kill a process by PID


kill PID
# Kill a process by name
pkill process_name

# Monitor system processes in real-time


htop

=============================================
5. Network Commands
=============================================
# Check IP address
ip a

# Ping a website to check connectivity


ping -c 4 google.com

# Show open network connections


netstat -tulnp

# Scan a network with Nmap


nmap -sV 192.168.1.1

=============================================
6. File Operations & Searching
=============================================
# Find a file by name
find / -name filename 2>/dev/null

# Search for a keyword inside files


grep "keyword" filename

# View file content (without opening editor)


cat filename

=============================================
7. Package Management
=============================================
# Install a package
sudo apt install package_name -y

# Remove a package
sudo apt remove package_name -y

# Search for a package


apt search package_name

=============================================
8. Ethical Hacking Tools (Examples)
=============================================
# Run Nmap for network scanning
nmap -A 192.168.1.1

# Run Metasploit Framework


msfconsole

# Run Aircrack-ng for Wi-Fi penetration testing


airmon-ng start wlan0

=============================================
9. System Monitoring & Logs
=============================================
# Check system uptime
uptime

# Show disk usage


df -h

# Show memory usage


free -m

# Check system logs


journalctl -xe

=============================================
10. Miscellaneous Useful Commands
=============================================
# Show system information
uname -a

# Check Kali Linux version


cat /etc/os-release

# Shutdown system
sudo shutdown -h now

# Restart system
sudo reboot

=============================================
End of Guide
=============================================

You might also like