pwdPrints the current working directory as an absolute path from the root directory.
Complete reference of 163 essential Linux and Kali Linux terminal commands with individual pages, syntax, practical examples, and instant search.
pwdPrints the current working directory as an absolute path from the root directory.
lsLists directory contents, displaying file names, attributes, permissions, and metadata.
cdChanges the current working directory of the shell environment, supporting logical and physical symlink traversal.
cd ..Changes the current working directory to its immediate parent directory within the hierarchical Linux filesystem tree.
cd ~Changes the current working directory to the current user's personal home directory using shell tilde expansion.
cd -Toggles the current working directory back to the previously active directory using the OLDPWD shell tracking variable.
pushdPushes a directory onto the shell directory stack and changes the current working directory to that location.
popdRemoves entries from the shell directory stack and navigates to the newly exposed top directory.
dirsDisplays the list of currently remembered directories in the shell directory stack.
mkdirCreates one or more new directories or parent directory trees on the filesystem.
touchCreates empty files and updates access and modification timestamps of existing filesystem objects.
cpCopies files or directories from one location to another.
mvMoves or renames files and directories across the filesystem.
rmRemoves (deletes) files or directories from the filesystem permanently.
rmdirRemoves empty directories from the filesystem, providing a safe alternative to recursive deletion commands.
catConcatenates files and displays their contents on the standard output.
lessViews file contents page by page with backward and forward navigation, pattern searching, and memory-efficient streaming.
moreFilters and displays text files one screenful at a time with forward scrolling and search.
headDisplays the beginning lines or bytes of text files and command streams to standard output.
tailOutputs the trailing portion of files and monitors real-time append events as data is written.
nanoModeless, user-friendly terminal text editor featuring on-screen keyboard shortcut prompts, line numbering, and syntax highlighting.
vimHighly configurable modal text editor designed for efficient text editing, programming, and configuration management across terminal sessions.
wcCounts lines, words, characters, and bytes in a file.
lnCreates hard links and symbolic (soft) links establishing filesystem references to existing files and directories.
statDisplays comprehensive filesystem metadata and inode status information including timestamps, permissions, blocks, and ownership.
fileIdentifies file type and encoding by inspecting filesystem metadata, magic numbers, and internal signatures.
teeReads from stdin and writes to both stdout and one or more files simultaneously.
diffCompares two files line by line and shows the differences.
whoamiDisplays the effective user name associated with the current running process or shell session.
whoDisplays information about currently logged-in users by reading the system utmp accounting database.
wDisplays who is currently logged on and what processes each user is running along with system load averages.
idPrints real and effective user and group IDs, names, and security contexts for the current or specified user.
suSwitches the current user context to another user account or spawns an interactive root login shell.
sudoExecutes commands with superuser privileges or as another target user with granular authorization and auditing.
passwdUpdates user authentication tokens and manages account password aging policies in the shadow password database.
useraddCreates a new user account and initializes default environment settings in the system databases.
usermodModifies existing user account attributes including group memberships, login shell, home directory, and lock status.
userdelDeletes a Linux user account and related system authentication entries from system credential databases.
groupaddCreates a new user group definition in the system authentication databases.
groupdelRemoves an existing user group definition from the system authentication databases.
groupsPrints the names of all primary and supplementary groups the current or specified user belongs to.
lastDisplays a chronological list of recent user logins, reboots, and session durations from system accounting logs.
chmodChanges file mode bits and permissions for user, group, and others.
chownChanges file owner and group ownership across the filesystem.
chgrpChanges group ownership of files and directories across Linux filesystems to control team access.
umaskDisplays or sets the file mode creation mask determining default permissions for newly created files and directories.
getfaclDisplays POSIX Access Control Lists (ACLs) revealing granular multi-user and multi-group file permissions.
setfaclSets, modifies, and removes POSIX Access Control Lists (ACLs) to configure fine-grained file and directory access.
sudo -lQueries and enumerates the active sudo security policy to display allowed and forbidden commands, target users, and execution tags for the user.
visudoSafely edits the /etc/sudoers file to configure sudo permissions.
pingSends ICMP ECHO_REQUEST packets to network hosts to diagnose network connectivity, measure packet latency, and detect transmission loss.
ifconfigConfigures, monitors, and queries network interface parameters in Linux network subsystems.
ipModern replacement for ifconfig. Shows and manipulates network interfaces, routing tables, and IP tunnels.
netstatLegacy network analysis tool from the net-tools package for displaying active network connections, routing tables, and interface statistics.
ssModern, high-performance socket inspection utility that dumps detailed socket statistics directly from the Linux kernel Netlink subsystem.
curlTransfers data from or to a server using various network protocols (HTTP, HTTPS, FTP, and more).
wgetDownloads files from the internet non-interactively via HTTP, HTTPS, and FTP protocols.
digPerforms flexible DNS lookups and queries name servers directly with comprehensive protocol diagnostics.
nslookupQueries Internet domain name servers interactively or non-interactively to resolve DNS records.
hostStreamlined Domain Name System (DNS) lookup utility for performing forward address resolution and reverse IP mapping.
tracerouteTracks the packet delivery path across IP networks by exploiting IP TTL expiration to map intermediate routing hops and measure transit latencies.
arpManipulates and inspects the IPv4 Address Resolution Protocol neighbor cache table in the Linux kernel.
routeDisplays and manipulates the IP routing table in the Linux kernel network subsystem.
hostnameShows or temporarily sets the system's network host name and IP domain addresses.
iwconfigConfigures and inspects wireless network interfaces using legacy Linux Wireless Extensions.
psReports a snapshot of current running processes with their PIDs.
topDisplays an interactive, real-time view of system processes, CPU utilization, and memory usage.
htopInteractive, ncurses-based real-time process viewer and system resource monitor.
killSends standard operating system signals to terminate, pause, or reload processes by PID.
killallTerminates all running processes matching an exact name by sending specified signals.
pkillSends signals to running processes based on process name, command-line patterns, and user attributes.
bgResumes a suspended or stopped job in the background within the current shell session.
fgBrings a background or suspended job into the foreground of the current terminal session.
jobsLists active background, running, and suspended jobs in the current shell session.
niceRuns a program with a modified scheduling priority (niceness) in the Linux kernel scheduler.
reniceAlters the scheduling priority (niceness) of one or more already running processes.
nohupRuns a command immune to hangups (SIGHUP) with output redirected to non-terminal files.
pgrepSearches running processes and outputs the process IDs (PIDs) matching specified criteria.
unamePrints detailed operating system, hardware architecture, and Linux kernel release information.
uptimeDisplays how long the system has been running, the number of active users, and system load averages.
hostnamectlQueries and controls the system hostname and associated system architecture metadata via systemd.
lscpuGathers and displays detailed CPU architecture, core topology, cache hierarchy, and hardware vulnerability mitigations.
lsblkLists information about all available block devices, partitions, and storage hierarchies in a tree layout.
lspciDisplays detailed information about all PCI and PCIe buses and attached hardware devices (GPUs, NICs, NVMe drives).
lsusbDisplays information about USB buses and all connected Universal Serial Bus devices (flash drives, keyboards, adapters).
freeDisplays the total, used, and available physical memory (RAM) and swap space in the system.
vmstatReports virtual memory, process scheduling, block I/O, paging, and CPU activity statistics from kernel subsystems.
dmesgInspects and controls the kernel ring buffer, displaying hardware initialization, driver messages, and kernel diagnostics.
lsmodFormats and displays the list of currently loaded Linux kernel modules and their dependencies.
modinfoExtracts and displays detailed metadata, author, license, parameters, and dependencies from Linux kernel modules.
envRuns a command in a modified environment or displays current exported environment variables.
echoOutputs text strings and variable values to standard output with optional formatting.
dateDisplays, formats, or sets the system date and time with advanced relative date parsing.
calDisplays formatted monthly and yearly calendars in the terminal with day highlighting.
historyDisplays, manipulates, and searches the list of previously executed commands in the current shell session.
clearClears the terminal screen using terminal-specific escape sequences, with an option (-x) to prevent clearing the scrollback buffer.
aliasCreates or displays command aliases, providing custom shortcuts and default arguments for commands.
unaliasRemoves defined aliases from the current shell's active environment.
apt updateResynchronizes local package index files from remote repository sources defined in sources.list and sources.list.d directories.
apt upgradeInstalls available upgrades of all packages currently installed on the system from configured repositories without removing existing packages.
apt installInstalls new software packages and their required dependencies from configured repositories onto the Debian-based system.
apt removeRemoves specified installed packages from the system while preserving their user configuration files in /etc/.
apt purgeCompletely removes specified packages along with all their global configuration files and service directories.
apt autoremoveRemoves automatically installed packages that were originally brought in as dependencies but are no longer needed by any installed software.
apt searchSearches available package names and descriptions in the local APT cache for specified regular expressions or keywords.
apt showDisplays comprehensive package metadata, including version, dependencies, architecture, maintainer, size, and detailed descriptions.
apt listLists packages matching specified criteria such as installed, upgradable, or all available packages in the repository.
dpkg -iInstalls or upgrades local Debian package (.deb) files directly into the system filesystem without automatic remote dependency resolution.
dpkg -rRemoves an installed package from the system while leaving its configuration files intact in the /etc/ directory.
dpkg -lLists installed Debian and Ubuntu software packages matching an optional pattern with their installation status, version, and architecture.
snap installInstalls sandboxed, self-contained application bundles from the Canonical Snap Store onto the Linux system.
pip installDownloads, compiles, and installs Python packages and binary wheels from the Python Package Index into user environments or virtual environments.
tarArchives multiple files into a single tarball. Use -czf to compress with gzip.
gzipCompresses a single file using the gzip algorithm (replaces original with .gz).
gunzipDecompresses files compressed with gzip, zip, or compress algorithms back to their original state.
bzip2Compresses files using the Burrows-Wheeler block-sorting algorithm and Huffman coding, yielding high-density .bz2 archives.
bunzip2Decompresses files compressed with bzip2 (.bz2), validating 32-bit CRC checksums and restoring the original uncompressed file.
zipCreates a compressed ZIP archive of files and directories.
unzipExtracts files from a ZIP archive.
xzCompresses files using high-ratio LZMA/LZMA2 algorithms, creating compact .xz containers with multi-threading and CRC integrity verification.
unxzDecompresses files compressed with xz (LZMA/LZMA2), validating stream checksums and restoring original uncompressed files.
7zVersatile multi-format CLI archive manager providing high-ratio LZMA2 compression, strong AES-256 encryption, and multi-volume archives.
sshConnects securely to a remote machine via the SSH protocol for shell access and encrypted tunneling.
scpCopies files and directories securely between local and remote systems or between two remote hosts using encrypted SSH transport.
rsyncSynchronizes files and directories locally or across remote networks using an efficient delta-transfer algorithm and SSH encryption.
ftpTransfers files to and from a remote host using the legacy, unencrypted File Transfer Protocol.
sftpProvides an interactive, encrypted file transfer program operating over the secure OpenSSH transport protocol.
telnetConnects to remote hosts via the unencrypted Telnet protocol and provides a raw TCP socket debugging utility.
ssh-keygenGenerates, manages, and converts OpenSSH public and private cryptographic key pairs for secure authentication.
ssh-copy-idInstalls your local SSH public key onto a remote server's authorized_keys file to enable seamless key-based login.
findSearches for files and directories in a directory hierarchy by name, type, size, modification time, and permissions.
grepSearches for patterns (plain text or regular expressions) inside files or standard input and prints matching lines.
locateFast index-based filesystem search utility that queries a pre-built file database to locate files and directories instantly.
whichLocates the executable binary associated with a command by searching the directories in the current PATH.
whereisLocates the binary executable, source files, and manual page documentation for specified command names in standard system locations.
typeDisplays how a command name would be interpreted by the shell, classifying it as an alias, keyword, function, builtin, or executable file.
awkPowerful pattern scanning and data processing language for extracting and calculating columnar data.
sedStream editor for filtering, transforming, and substituting text in files or standard input.
sortSorts lines of text files alphabetically or numerically.
uniqReports or filters out repeated lines in a sorted file.
cutExtracts selected sections, columns, or character ranges from each line of input files or standard input streams.
trTranslates, squeezes, or deletes characters from standard input and writes the result to standard output.
xargsBuilds and executes command lines from standard input, batching arguments to prevent system limits and running tasks in parallel.
dfReports file system disk space usage, allocated blocks, free capacity, and mount points across all storage volumes.
duEstimates file and directory space usage (disk usage).
fdiskManipulates disk partition tables, supporting traditional DOS/MBR, modern GPT, Sun, and SGI partition layouts with sector-level precision.
mountAttaches storage filesystems, block devices, disk images, and network shares to the unified Linux directory hierarchy at specified mount points.
umountDetaches mounted filesystems from the Linux directory hierarchy, committing cached write buffers and safely releasing block devices.
mkfsCreates a filesystem (formats) on a disk partition.
fsckChecks and optionally repairs a filesystem for errors.
ddCopies and converts raw data at the block level (disk cloning, bootable USB creation).
blkidLocates and displays block device attributes, querying filesystem signatures and the libblkid cache to report UUIDs, PARTUUIDs, volume labels, and filesystem types.
partedA powerful, scriptable partition manipulation utility that supports modern GPT disk labels, large storage volumes (over 2TB), partition alignment verification, and live filesystem resizing.
ncduInteractive disk usage analyzer with a terminal UI (ncurses-based).
systemctl startActivates one or more systemd service units immediately in the running system session.
systemctl stopDeactivates one or more running systemd service units immediately in the active session.
systemctl restartStops and immediately starts one or more systemd service units, restarting all processes within their control groups.
systemctl enableConfigures a systemd service to start automatically during system boot by creating dependency symlinks in filesystem target directories.
systemctl disablePrevents a systemd service from starting automatically at boot by removing its dependency symlinks from filesystem target directories.
systemctl statusInspects runtime execution state, unit file configuration, process tree hierarchy, cgroup resource consumption, and recent journal logs for system services.
systemctl list-unitsLists, filters, and inspects systemd units currently loaded into memory, displaying active states, load states, and operational descriptions.
serviceExecutes SysV init scripts or legacy service actions, transparently redirecting to systemctl on modern systemd Linux distributions.
journalctlQueries, filters, and analyzes structured binary event logs collected across system services and the kernel by systemd-journald.
Understand the operating system foundations behind command-line workflows.
Learning resourceBuild confidence with shell navigation and command-line fundamentals.
Linux fundamentalsLearn how Linux directories, paths, and files are organized.
Linux securityUnderstand chmod, ownership, and safe permission management.
Network discovery and service enumeration from the terminal.
NetworkingInspect network connections and troubleshoot TCP or UDP services.
Packet analysisCapture and inspect packets directly from the command line.
Domain intelligenceQuery domain registration information from a terminal.