0% found this document useful (0 votes)
63 views15 pages

1-Cyber Security -Kali Commands

The document provides a comprehensive list of basic Kali Linux commands categorized into system information, user management, file and directory management, package management, network commands, process and resource management, permissions and ownership, ethical hacking tools, services management, and terminal/shell information. It includes commands for managing users, files, packages, network settings, processes, and system services, as well as a brief overview of different terminal emulators and shells available in Kali. This serves as a quick reference guide for users working with Kali Linux.

Uploaded by

al7254464
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views15 pages

1-Cyber Security -Kali Commands

The document provides a comprehensive list of basic Kali Linux commands categorized into system information, user management, file and directory management, package management, network commands, process and resource management, permissions and ownership, ethical hacking tools, services management, and terminal/shell information. It includes commands for managing users, files, packages, network settings, processes, and system services, as well as a brief overview of different terminal emulators and shells available in Kali. This serves as a quick reference guide for users working with Kali Linux.

Uploaded by

al7254464
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Kali Basic Commands to Remember

CYBER SECURITY-1
System Information

 uname -a # Show system


information
 hostname # Show system hostname
 uptime # Show system uptime
 lsb_release -a # Show distribution
information
 cat /etc/os-release # Display OS version
 whoami # Show current user
User Management

 who # Show logged-in users


 w # Show active users and their
processes
 id # Show user ID and group ID
 groups username # Show groups of a user
 passwd # Change user password
 sudo adduser newuser # Add a new user
 sudo deluser username # Delete a user
.
File & Directory
Management
 ls -la # List files with details
 cd /path/to/dir # Change directory
 pwd # Show current directory
 mkdir newdir # Create a directory
 rm filename # Remove a file
 rm -rf dirname # Remove a directory
recursively
 cp file1 file2 # Copy file1 to file2
 mv file1 file2 # Rename or move file
Package Management
 sudo apt update # Update package list
 sudo apt upgrade # Upgrade installed
packages
 sudo apt install <pkg> # Install a package
 sudo apt remove <pkg> # Remove a
package
 sudo apt autoremove # Remove
unnecessary packages
 dpkg -i package.deb # Install a .deb
package
Network Commands
 ifconfig # Show network interfaces
(deprecated, use ip)
 ip a # Show network interfaces and IPs
 ip r # Show routing table
 ping <host> # Check network connectivity
 netstat -tulnp # Show open ports and services
 nmap <IP> # Scan an IP for open ports
 wget <URL> # Download a file
 curl <URL> # Fetch content from a URL.
Process & Resource
Management
 top # Show active processes
 htop # Interactive process viewer
 ps aux # Show running processes
 kill <PID> # Kill a process
 killall <name> # Kill all processes by
name
 df -h # Show disk usage
 du -sh * # Show size of directories
 free -m # Show RAM usage
Permissions & Ownership

 chmod 777 file # Change file


permissions (full access)

 chown user:group file # Change


file ownership

 sudo chmod +x script.sh # Make


script executable
Ethical Hacking &
 nmap -sSPentesting
<IP> Tools
# Stealth scan
 airmon-ng # Show available WiFi
interfaces
 airmon-ng start wlan0 # Enable monitor
mode
 aircrack-ng -a2 -b <BSSID> -w <wordlist>
<capfile> # Crack WPA2
 hydra -L users.txt -P passwords.txt
ssh://<IP> # Brute-force SSH login
 msfconsole # Start Metasploit
framework
Services Management

 systemctl start <service> # Start a


service

 systemctl stop <service> # Stop a


service

 systemctl restart <service> # Restart a


service

 systemctl status <service> # Check


Others

 history # Show
command history

 clear # Clear terminal


screen

 alias ll='ls -la' # Create alias

 unalias ll # Remove alias


Number of terminals in
Kali
 GNOME Terminal: The default terminal for the
GNOME desktop environment.
 XFCE Terminal: The default terminal for the XFCE
desktop environment (often used in Kali).
 Konsole: A terminal emulator for the KDE desktop
environment (can be installed separately).
 Terminator: A popular terminal emulator that
allows you to split windows into multiple panes.
 Xterm: A basic terminal emulator for the X Window
System.
 LXTerminal: A lightweight terminal emulator for
the LXDE desktop environment (often used with
lighter systems).
No of Shells in Kali
 Bash (Bourne Again Shell):
This is the default shell in Kali Linux and most other Linux distributions.
It is an enhanced version of the original Bourne Shell (sh), offering
features like command history, tab completion, scripting capabilities,
and more.
 Zsh (Z Shell):
Zsh is a highly customizable shell, popular for its advanced features,
such as better auto-completion, powerful scripting, and a more flexible
prompt. Many users switch to Zsh because of its features and
appearance.
 Fish (Friendly Interactive Shell):
Fish is known for being user-friendly, with smart features like
autosuggestions, syntax highlighting, and an intuitive prompt. It aims
to be easy to use, especially for beginners.
 Sh (Bourne Shell):
The Bourne Shell is an older shell that was the default in Unix systems.
It's still widely used for scripting and is a standard shell for many
system scripts.
No of Shells in Kali
 Csh (C Shell):
 Csh is a shell that has a syntax resembling the C programming language.
It's less commonly used nowadays but was popular in earlier Unix systems.
 Tcsh (Tenex C Shell):
 Tcsh is an enhanced version of the Csh shell, offering features like
command-line editing and history. It’s often used in environments where
compatibility with Csh is needed, but with modern enhancements.
 Ksh (Korn Shell):
 Ksh is a shell that combines features of the Bourne Shell and C Shell. It's
known for its scripting capabilities and is often used in enterprise
environments.
 Dash (Debian Almquist Shell):
 Dash is a lightweight, POSIX-compliant shell used primarily for scripting. It's
faster than Bash and often used in scripts that need to be executed quickly.
 BusyBox Shell:
 BusyBox is a minimal shell typically used in embedded systems. It combines
many utilities and commands into a single executable.
Thank You

You might also like