Alpine Linux
Alpine-based · Command reference
Availability and options depend on your installed release and packages. For guided practice, choose a learning path.
Networking & DNS
Query DNS records directly against a nameserver.
Simple DNS lookup utility.
Show and manage network interfaces, addresses and routes.
Test basic reachability of a host using ICMP.
Investigate open sockets and listening ports.
Show the network path (hop by hop) to a destination.
Mail Servers (Exim, Postfix)
List the current Exim mail queue.
Force immediate delivery of specific queued messages.
Filter the Exim queue by sender, recipient or age.
Show the mail queue (Sendmail-compatible front end).
Read or set Postfix main.cf configuration parameters.
Send a test SMTP message from the command line.
File & Directory Management
Print file contents to the screen, or join files together.
Copy files and directories.
Compare two files line by line.
Search for files matching complex criteria.
Show the first lines of a file.
Create hard or symbolic links between files.
List directory contents.
Create a new directory.
Move or rename files and directories.
Remove files and directories.
Efficiently synchronise files locally or over SSH.
Display detailed file or filesystem status.
Show the last lines of a file, optionally following new additions.
Create and extract archive files.
Create an empty file, or update a file's timestamp.
Count lines, words and bytes in a file.
Permissions & Ownership
Change the group that owns a file or directory.
Change file and directory permissions.
Change the owning user (and optionally group) of a file.
Display the Access Control List of a file or directory.
Set fine-grained Access Control List permissions.
View or set the default permission mask for new files.
Process & Job Management
List background and stopped jobs in the current shell session.
Send a signal to a process, most commonly to terminate it.
Start or adjust a process's scheduling priority.
Run a command immune to hangups, so it keeps running after logout.
Show a snapshot of currently running processes.
Interactive, real-time process viewer.
Package Management
Install and manage software on Alpine Linux.
User & Group Management
Create a new group.
Show a user's UID, GID and group memberships.
Set or change a user's password.
Switch to another user account within the current session.
Run a single command with another user's (usually root's) privileges.
Create a new user account.
Delete a user account.
Modify an existing user account.
System Monitoring & Logs
Print kernel ring buffer messages.
Display memory and swap usage.
Show how long the system has been running and its load average.
Report virtual memory, process, CPU and I/O statistics.
Show who is logged in and what they are doing.
Text Processing & Editors
Pattern-scanning and text-processing language.
Extract columns or fields from each line of text.
Search text for lines matching a pattern.
View file contents one page at a time.
Stream editor for filtering and transforming text.
Sort lines of text.
Disk & Storage
Report filesystem disk space usage.
Estimate file and directory space usage.
View and edit disk partition tables (MBR).
List block devices in a tree view.
Create a new filesystem on a partition or device.
Attach a filesystem to the directory tree.
Firewall & Security
Manage the Fail2Ban intrusion-prevention service.
Directly configure Linux kernel packet-filtering rules.
Generate SSH key pairs for passwordless, key-based authentication.
Shell & Environment Basics
Create a shortcut for a longer command.
Change the current working directory.
Print text or the value of a variable.
Set an environment variable for the current shell and its child processes.
Show previously run commands.
Read a command's manual page.
Print the current working directory.
Show the full path of a command that would run.
System & Hardware Info
Read hardware information from the system's DMI/SMBIOS tables.
Display CPU architecture information.
List PCI devices attached to the system.
List USB devices attached to the system.
Print kernel and system information.
Scheduling & Automation
Schedule a command to run once, at a specific future time.
Schedule commands to run automatically on a recurring basis.
Run a command repeatedly, showing its output full-screen.
Archiving & Compression
Compress a file using the bzip2 algorithm.
Decompress a .gz file.
Compress a file using the gzip algorithm.
Extract files from a .zip archive.
Compress a file using the xz (LZMA2) algorithm.
Create a .zip archive.
Remote Access & File Transfer
Transfer data to or from a URL — HTTP, FTP and more.
Copy files to or from a remote host over SSH.
Interactively browse and transfer files over SSH.
Log in to a remote system securely.
Download files from the web.