Shell Command Reference
Quick reference for common shell commands with syntax examples and practical use cases.
lsFile OpsList directory contents.
cpFile OpsCopy files or directories.
mvFile OpsMove or rename files and directories.
rmFile OpsRemove files or directories.
mkdirFile OpsCreate a new directory.
rmdirFile OpsRemove an empty directory.
findFile OpsSearch for files matching criteria.
grepFile OpsSearch text using patterns.
chmodFile OpsChange file permissions.
chownFile OpsChange file owner and group.
touchFile OpsCreate an empty file or update its timestamp.
lnFile OpsCreate hard or symbolic links.
pwdFile OpsPrint the current working directory.
cdFile OpsChange the current directory.
statFile OpsDisplay detailed file or filesystem status.
fileFile OpsDetermine file type.
catTextConcatenate and print file contents.
lessTextView file contents one page at a time.
headTextPrint the first lines of a file.
tailTextPrint the last lines of a file, optionally following updates.
sedTextStream editor for filtering and transforming text.
awkTextPattern-scanning and text-processing language.
sortTextSort lines of text.
uniqTextReport or filter repeated lines (input should be sorted).
wcTextCount lines, words, and bytes.
cutTextExtract sections from each line of a file.
trTextTranslate or delete characters.
diffTextCompare two files line by line.
xargsTextBuild and execute commands from standard input.
psProcessReport a snapshot of current processes.
killProcessSend a signal to a process (default: terminate).
killallProcessKill processes by name.
topProcessDisplay real-time system and process statistics.
htopProcessInteractive process viewer (nicer than top).
jobsProcessList background jobs in the current shell.
bgProcessResume a suspended job in the background.
fgProcessBring a background job to the foreground.
nohupProcessRun a command immune to hangups, even after logout.
niceProcessRun a command with adjusted scheduling priority.
curlNetworkTransfer data to or from a server.
wgetNetworkDownload files from the web.
scpNetworkSecurely copy files between hosts.
rsyncNetworkEfficiently sync files and directories.
pingNetworkTest network connectivity to a host.
digNetworkQuery DNS name servers.
nslookupNetworkQuery DNS records for a domain.
netstatNetworkDisplay network connections and listening ports.
ncNetworkNetcat โ read and write across network connections.
git initGitCreate a new Git repository.
git cloneGitClone a repository into a new directory.
git statusGitShow the working tree status.
git addGitStage changes for the next commit.
git commitGitRecord staged changes to the repository.
git pushGitUpload local commits to a remote repository.
git pullGitFetch and merge changes from a remote repository.
git branchGitList, create, or delete branches.
git checkoutGitSwitch branches or restore files.
git mergeGitMerge another branch into the current one.
git logGitShow commit history.
git diffGitShow changes between commits, branches, or the working tree.
tarArchiveCreate or extract tar archives.
zipArchivePackage and compress files into a zip archive.
unzipArchiveExtract files from a zip archive.
gzipArchiveCompress a file using gzip.
gunzipArchiveDecompress a gzip-compressed file.
dfDiskReport filesystem disk space usage.
duDiskEstimate file and directory space usage.
mountDiskMount a filesystem.
umountDiskUnmount a filesystem.
lsblkDiskList information about block devices.
Knowing roughly what needs doing, finding every file modified in the last day, extracting a specific archive format, isn't the same as remembering the exact flag combination a command actually needs, especially for something used rarely enough that the syntax never quite sticks between uses. This tool provides a quick reference for common shell commands, showing syntax and a practical example for each rather than requiring a full manual page read just to confirm one flag.
See moreSee less about the Shell Command Reference
Useful for looking up the exact flag combination for a command that's used rarely enough to keep forgetting, refreshing memory on tar's specific syntax before extracting an unfamiliar archive format, or learning what a common command actually does through a practical example instead of reading its entire manual page.
Key features
- Clean interface
- Fast processing
- No signup required
- Works offline