Learning path
Learn one command at a time: read, follow along, then practise with random exercises. The order is a suggestion; jump to any lesson you like.
- 1
Finding your way
Where am I? What is here? How do I get elsewhere?
- 2
Files and directories
Create, copy, move, rename and delete.
mkdirMake directories
Not started · 0/4 skillstouchCreate empty files or update timestamps
Not started · 0/3 skillscpCopy files and directories
Not started · 0/4 skillsmvMove or rename files
Not started · 0/4 skillsrmRemove files or directories
Not started · 0/4 skillsrmdirRemove empty directories
Not started · 0/2 skills - 3
Reading files
Show files, their start and end, and count lines.
- 4
Finding things
Find files by name and text by content.
- 5
Redirection and pipes
Send output to files and chain commands.
- 6
Text processing
Sort, deduplicate, cut columns, replace text.
- 7
Permissions
Read and change file permissions.
- 8
Links and archives
Give files a second name; pack, compress and unpack.
lnCreate hard or symbolic links
Not started · 0/3 skillstarCreate and extract archives
Not started · 0/3 skillsgzipCompress files with gzip (replaces the original)
Not started · 0/2 skillsgunzipDecompress .gz files
Not started · 0/1 skillszcatShow the content of .gz files without extracting
Not started · 0/1 skills - 9
Comparing and extracting
Find what changed between files; pick out and add up columns.
- 10
Scripts and batch work
Run scripts and hand batches of files to a command.
- 11
Getting help
Where to look when you do not know how a command works, or what it is called.
helpHelp for shell builtin commands
Not started · 0/1 skillsmanShow a command's manual page
Not started · 0/1 skillswhatisOne-line description of a command
Not started · 0/1 skillsaproposSearch manual pages by keyword
Not started · 0/1 skillswhichLocate a command
Not started · 0/1 skillswhereisLocate the binary, source and manual of a command
Not started · 0/1 skillstypeTell what a command name is: builtin, alias or program
Not started · 0/1 skillslocateFind files by name using a prebuilt index
Not started · 0/1 skills - 12
File details
File types, permissions, sizes, paths and links.
fileDetermine a file type
Not started · 0/1 skillsstatShow detailed file status
Not started · 0/1 skillstreeList a directory as a tree
Not started · 0/1 skillsduEstimate file and directory space usage
Not started · 0/1 skillsdfShow disk space usage of file systems
Not started · 0/1 skillsbasenameStrip the directory part from a path
Not started · 0/1 skillsdirnameStrip the last component from a path
Not started · 0/1 skillsrealpathPrint the resolved absolute path
Not started · 0/1 skillsreadlinkPrint where a symbolic link points
Not started · 0/1 skills - 13
Viewing and shaping text
Paging, numbering, reversing, wrapping and tables.
lessView a file page by page, with scrolling and search
Not started · 0/1 skillsmoreView a file page by page (simpler than less)
Not started · 0/1 skillsnlNumber the lines of files
Not started · 0/1 skillstacPrint files in reverse line order
Not started · 0/1 skillsrevReverse the characters of each line
Not started · 0/1 skillsfoldWrap lines to a given width
Not started · 0/1 skillscolumnFormat input into aligned columns
Not started · 0/1 skills - 14
More text tools
Merge, compare and split files; number sequences and random picks.
egrepgrep with extended regexps (same as grep -E)
Not started · 0/1 skillspasteMerge lines of files side by side
Not started · 0/1 skillsjoinJoin lines of two sorted files on a common field
Not started · 0/1 skillscommCompare two sorted files column by column
Not started · 0/1 skillscmpCompare two files byte by byte
Not started · 0/1 skillssplitSplit a file into pieces
Not started · 0/1 skillsseqPrint a sequence of numbers
Not started · 0/1 skillsshufShuffle lines randomly
Not started · 0/1 skills - 15
Checksums and bytes
Verify files, look at bytes, handle binaries and temporary files.
md5sumCompute or check MD5 checksums
Not started · 0/1 skillssha256sumCompute or check SHA-256 checksums
Not started · 0/1 skillsodDump files in octal, hex and other formats
Not started · 0/1 skillsxxdMake a hex dump or reverse one
Not started · 0/1 skillsstringsPrint the printable text in binary files
Not started · 0/1 skillstruncateShrink or extend a file to a given size
Not started · 0/1 skillsmktempCreate a temporary file or directory safely
Not started · 0/1 skills - 16
Owners and users
Who owns a file, who you are, and who else is logged in.
chownChange file owner and group
Not started · 0/1 skillschgrpChange the group of files
Not started · 0/1 skillsumaskSet the default permission mask for new files
Not started · 0/1 skillswhoamiPrint the current user name
Not started · 0/1 skillsidPrint user and group IDs
Not started · 0/1 skillsgroupsShow the groups a user is in
Not started · 0/1 skillswhoShow who is logged in
Not started · 0/1 skillswShow who is logged in and what they are doing
Not started · 0/1 skills - 17
Processes
List, find and signal processes; wait and measure time.
psReport a snapshot of current processes
Not started · 0/1 skillspgrepFind process IDs by name
Not started · 0/1 skillspstreeShow processes as a tree
Not started · 0/1 skillskillSend a signal to a process (terminate by default)
Not started · 0/2 skillssleepDelay for a specified time
Not started · 0/1 skillstimeTime how long a command takes
Not started · 0/1 skills - 18
System information
Versions, time, memory, hardware and the kernel.
unamePrint system information
Not started · 0/1 skillshostnameShow or set the host name
Not started · 0/1 skillsdateShow or set the date and time
Not started · 0/1 skillscalShow a calendar
Not started · 0/1 skillsuptimeShow how long the system has been running and its load
Not started · 0/1 skillsfreeShow memory usage
Not started · 0/1 skillslscpuShow CPU information
Not started · 0/1 skillslspciList PCI devices (graphics, network …)
Not started · 0/1 skillsdmesgShow kernel messages (hardware, drivers)
Not started · 0/1 skillssysctlView or change kernel parameters
Not started · 0/1 skillssyncFlush cached writes to disk
Not started · 0/1 skills - 19
Variables and the environment
Environment variables, loading settings, reading input and aliases.
exportSet an environment variable for child processes
Not started · 0/1 skillsunsetRemove a variable
Not started · 0/1 skillsenvShow the environment or run a command in a modified one
Not started · 0/1 skillsprintenvPrint environment variable values
Not started · 0/1 skillssourceRun a script in the current shell (also written .)
Not started · 0/1 skillsreadRead a line of input into variables
Not started · 0/1 skillsaliasDefine a shortcut for a command
Not started · 0/1 skillsunaliasRemove an alias
Not started · 0/1 skills - 20
Shell helpers
Formatted output, arithmetic, tests, exit statuses and the terminal.
printfPrint formatted text
Not started · 0/1 skillsexprEvaluate expressions
Not started · 0/1 skillsbcArbitrary-precision calculator
Not started · 0/1 skillstestEvaluate a condition (also written [ ... ])
Not started · 0/1 skillstrueDo nothing, successfully (exit code 0)
Not started · 0/1 skillsfalseDo nothing, unsuccessfully (exit code 1)
Not started · 0/1 skillsyesPrint y (or a string) forever
Not started · 0/1 skillsexitLeave the current shell
Not started · 0/1 skillshistoryShow command history
Not started · 0/1 skillsclearClear the terminal screen
Not started · 0/1 skillsresetReinitialise the terminal (when it shows garbage)
Not started · 0/1 skills - 21
Processes and jobs Needs real Linux
Foreground, background and stopped jobs; ending processes by name; priorities, time limits and watching the system.
jobsList jobs of the current shell
Not started · 0/1 skillsbgResume a stopped job in the background
Not started · 0/1 skillsfgBring a job to the foreground
Not started · 0/1 skillsnohupKeep a command running after you log out
Not started · 0/1 skillstopLive view of processes and resource usage
Not started · 0/1 skillspkillSignal processes by name
Not started · 0/1 skillskillallKill processes by exact name
Not started · 0/1 skillsniceRun a command with a given priority
Not started · 0/1 skillsreniceChange the priority of running processes
Not started · 0/1 skillstimeoutRun a command with a time limit
Not started · 0/1 skillswatchRun a command repeatedly and show its output
Not started · 0/1 skillslsofList open files and network connections
Not started · 0/1 skillsvmstatReport memory, process and CPU statistics
Not started · 0/1 skillsstraceTrace system calls of a program
Not started · 0/1 skills - 22
Networking Needs real Linux
In the practice network: addresses and DNS, websites and services, remote commands and file transfers, the firewall.
pingCheck whether a host is reachable
Not started · 0/1 skillsipShow and configure interfaces, addresses and routes
Not started · 0/2 skillsssInspect sockets and listening ports
Not started · 0/1 skillshostSimple DNS lookup utility
Not started · 0/2 skillsdigQuery DNS records
Not started · 0/1 skillsnslookupQuery DNS for a name
Not started · 0/1 skillscurlTransfer data with URLs; great for HTTP APIs
Not started · 0/4 skillswgetDownload files from the web
Not started · 0/2 skillsncnetcat: read and write network connections
Not started · 0/2 skillssshLog in to a remote machine securely
Not started · 0/1 skillsssh-keygenGenerate SSH key pairs
Not started · 0/1 skillsscpCopy files between machines over SSH
Not started · 0/1 skillsrsyncSync files efficiently (only what changed)
Not started · 0/1 skillsiptablesConfigure Linux firewall rules
Not started · 0/1 skills