DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk3 min

Linux Commands Cheat Sheet: Essential Commands Grouped by Task

A scannable Linux commands cheat sheet organized by task, with practical descriptions and notes on availability, safety, and local help.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use this Linux commands cheat sheet to choose a command by what you need to do: navigate, inspect files, manage data, search text, check system state, or connect to another machine. Examples use ordinary shell syntax and common Linux utilities; availability and options vary by installation. Run man command or, for many GNU utilities, command --help to check your local version.

Navigate and identify your location

  • pwd — print the current working directory.
  • ls — list directory entries. Use ls -la to include hidden entries and show additional metadata.
  • cd — change the working directory of the current shell. In Bash, cd is a shell built-in, not a separate program.

Inspect files

  • cat file — write a file’s contents to standard output; most useful for short files.
  • less file — page through longer text. less may need to be installed on a minimal system.
  • head file and tail file — inspect the beginning or end of a file. tail -f file follows appended output on implementations that support it.
  • file path — identify a file type when the utility is installed.
  • stat path — inspect file metadata.

Create, copy, move, and remove files

  • mkdir directory — create a directory.
  • touch file — create an empty file if it does not exist, or update its timestamps; permissions can prevent either operation.
  • cp source destination — copy a file. Copying directories requires an appropriate recursive option; confirm its exact form in the local manual.
  • mv source destination — move or rename a path.
  • rm file — remove a directory entry. This can be difficult or impossible to undo. Check the path carefully, especially before using recursive or elevated-privilege options.

Search and transform text

  • grep pattern file — print lines matching a pattern.
  • find directory — locate directory entries; consult man find for the available tests and actions.
  • sort file — sort lines. uniq — report or filter adjacent repeated lines; use sort file | uniq when duplicates may not be next to each other in the original input.
  • cut — select fields or character positions from lines. Check the local manual for delimiter and selection syntax.
  • wc file — count lines, words, or bytes.
  • sed and awk — separate text-processing utilities for editing or processing input. Their supported features can vary by implementation, so check local documentation before relying on less-common syntax.

Change permissions and ownership

  • chmod — change a file’s mode bits, which control access. A mistaken change can block access or expose data; check the path and intended permissions first.
  • chown — change a file’s owner; chgrp — change its group. These changes are subject to permissions and system policy, and often require elevated privileges.
  • umask — view or set the shell’s file-creation permission mask, which affects permissions on newly created files and directories.

Check processes and system state

  • ps — report process status.
  • top — display ongoing process activity when installed.
  • kill — send a signal to a process. Sending a signal does not necessarily terminate it immediately.
  • uname — report system information, such as the kernel name or machine architecture.
  • df — report filesystem space. du — estimate space used by files and directories.
  • free — report memory information where installed.

These are common Linux administration commands, not a guarantee that every minimal installation includes every utility. Use the local manual to check availability and options.

As an Amazon Associate I earn from qualifying purchases.

Check networks and connect to other systems

  • ip — inspect or configure network interfaces and routes on systems using iproute2.
  • ping — test reachability using ICMP when permitted.
  • ss — inspect sockets on systems with iproute2.
  • curl or wget — transfer data from URLs when installed.
  • ssh — connect to a remote system when the client is installed and access is configured.

A command’s availability does not guarantee a successful connection: permissions, firewall rules, network policy, and remote configuration can affect the result. Use man command or the installed tool’s help for its supported syntax.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Create archives and compress data

  • tar — create or extract archives. Compression may be handled by an option or an external compressor, depending on the command and build.
  • gzip and xz — compress or decompress data in their supported formats.
  • zip and unzip — create or extract ZIP archives where installed.

An archive groups files; compression reduces data size. The two operations are related but distinct. Check the installed manual for implementation-specific options.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Get help and identify a command

  • man command — open the local manual page for a command.
  • man -k term — search manual-page descriptions for a term.
  • command --help — a common help pattern for GNU utilities, but not universal.
  • type name or command -v name — check how the current shell resolves a command. Results can distinguish a shell built-in from another command.

Local manuals are the practical reference for the utility actually installed on your system. A command name does not guarantee identical behavior or availability everywhere: Bash features differ from standalone utilities, POSIX shell syntax is preferable when portability matters, and package-management or service-management commands depend on the distribution or service manager. Confirm version-sensitive flags locally before using them.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.