Commands
Every command the simulator knows: what it is for, how to call it, which options work here and where you learn it.
By name, purpose or topic, such as grep or permissions.
133 commands
Shell and scripts
-
aliasDefines or shows short names for commands. -
bashStarts a new shell for a script. -
clearClears the terminal. -
commandRuns a command without functions or tells what it is. -
echoPrints its arguments as text. -
envShows the environment or runs a command with a changed one. -
exitEnds the shell. -
exportPasses variables on to started programs. -
falseDoes nothing and always fails. -
helpShows which commands there are. -
historyShows the commands typed so far. -
localCreates variables that belong to one function. -
logoutEnds a login shell. -
manShows the manual page of a command. -
printenvPrints values from the environment. -
printfPrints text following a format. -
readReads a line into variables. -
returnEnds a function or a sourced file. -
setSets shell options and positional parameters. -
shStarts a new shell for a script. -
shiftShifts the positional parameters. -
sourcealso . Reads a file and runs its commands in this shell. -
testalso [ Checks files, strings and numbers. -
truealso : Does nothing and always succeeds. -
typeTells what a command name stands for. -
unaliasRemoves aliases. -
unsetRemoves variables. -
whichShows which program file a command runs.
Files and folders
-
catShows the contents of files. -
cdChanges the directory. -
cpCopies files and directories. -
lessShows a file page by page, to scroll and search. -
lnCreates hard or symbolic links. -
lsLists what is in a directory. -
mkdirMakes directories. -
mvMoves or renames files. -
pwdPrints the path of the current directory. -
readlinkShows where a symbolic link points to. -
realpathPrints the full path without symbolic links. -
rmRemoves files and directories. -
rmdirRemoves empty directories. -
statShows what an inode records. -
touchMakes empty files or sets their time to now. -
truncateSets the size of a file.
Text
-
awkProcesses text line by line with a small program. -
cutCuts columns out of lines. -
diffCompares two files line by line. -
headShows the start of files. -
nlNumbers lines. -
pastePuts the lines of several files side by side. -
revReverses each line character by character. -
sedEdits text line by line with a script. -
sortSorts lines. -
tacPrints lines from last to first. -
tailShows the end of files. -
teeWrites its input to the screen and into files. -
trReplaces or deletes characters. -
uniqMerges equal lines that follow each other. -
wcCounts lines, words and characters.
Searching
Permissions and ownership
Users
-
getentShows entries from the user, group and host databases. -
gpasswdAdds a user to a group or removes them. -
groupaddCreates a new group. -
groupdelDeletes a group. -
passwdChanges a password. -
useraddCreates a new user. -
userdelDeletes a user. -
usermodChanges a user, for example their groups. -
wShows who is logged in and what is running. -
whoShows who is logged in. -
whoamiShows your user name.
Processes
-
bgContinues a stopped job in the background. -
fgBrings a job to the foreground. -
jobsLists the jobs of the shell: running, stopped and finished ones. -
killSends a signal to a process, usually to end it. -
killallEnds all processes with a given name. -
niceStarts a command with a changed priority. -
nohupStarts a command that keeps running when the terminal closes. -
pgrepFinds processes by name and shows their PIDs. -
pidofShows the PIDs of a running program. -
pkillEnds processes by name. -
psShows running processes. -
reniceChanges the priority of running processes. -
sleepWaits for a while, for example sleep 5 for five seconds. -
topShows the processes using the most CPU or memory. -
waitWaits until background jobs are finished.
System and services
-
aptShows the package database (installing comes in LPIC-1). -
crontabManages the crontab, a user's schedule. -
dateShows the date and time. -
dmesgShows the messages of the kernel. -
dpkgcomes in the path LPIC-1 -
freeShows memory: total, used, free, available. -
hostnameShows the name of the computer. -
journalctlShows the entries of the system journal. -
loggerWrites a message to the system journal. -
swaponShows the swap areas. -
systemctlShows and controls services (start, stop, enable). -
unameShows facts about the system. -
uptimeShows how long the computer runs and its load. -
vmstatShows processes, memory and CPU in one line.
Disks and space
Archives
Network
-
curlAsks a web service and shows its answer. -
digAsks the DNS server about a name. -
hostShows addresses and mail servers of a name. -
ipShows the interfaces, addresses and routes of the computer. -
pingChecks whether another computer answers. -
scpcomes in the path LPIC-1 -
ssShows which ports the computer listens on. -
sshcomes in the path LPIC-1 -
ssh-copy-idcomes in the path LPIC-1 -
ssh-keygencomes in the path LPIC-1