Skip to content

Linux Command Line Reference

The Linux command line, also known as the Terminal, is a powerful tool that opens up a wide range of possibilities for ChromeOS users. Through this interface, you can interact directly with the Linux environment installed on your device, allowing you to run commands, manage files, and execute scripts with precision and efficiency. This reference guide provides a curated list of the most commonly used Linux commands, designed to help you get the most out of your ChromeOS Linux experience, whether you're a beginner or an advanced user.

CommandDescriptionMore Information
aliasCreates or lists aliases, which are shortcuts for commands.alias command
aptThe Advanced Package Tool is the default package manager for Debian-based Linux distributions. It is used to manage software packages.apt documentation
catConcatenates and displays files. Commonly used to read or combine files.cat command
cdChanges the current working directory to the specified directory.cd command
chmodChanges the file mode bits (permissions) of a file or directory.chmod command
chownChanges the user and/or group ownership of a file or directory.chown command
clearClears the terminal screen.clear command
cpCopies files and directories from one location to another.cp command
curlTransfers data from or to a server using various protocols (HTTP, HTTPS, FTP, etc.).curl command
dateDisplays or sets the system date and time.date command
dfDisplays disk space usage of file systems.df command
duEstimates and displays disk space used by files and directories.du command
echoDisplays a line of text or variables to the terminal.echo command
envPrints or modifies the environment variables.env command
exportSets environment variables for the current shell session.export command
findSearches for files and directories in a directory hierarchy.find command
freeDisplays the total amount of free and used physical and swap memory in the system.free command
grepSearches for patterns in files using regular expressions.grep command
headOutputs the first part of files. By default, displays the first 10 lines.head command
historyDisplays or manipulates the command history list.history command
idDisplays user identity information, including user and group IDs.id command
ifconfigConfigures or displays network interface parameters. (Deprecated in favor of ip command.)ip command
ipShows or manipulates routing, network devices, interfaces, and tunnels.ip command
killSends a signal to a process, typically used to terminate it.kill command
killallKills processes by name.killall command
lessA pager program used to view (but not modify) the contents of a text file one screen at a time.less command
lnCreates links between files. By default, creates hard links; can create symbolic links with -s option.ln command
locateFinds files by name using a prebuilt database.locate command
logoutExits a login shell session.logout command
lsLists files and directories in the current working directory.ls command
manDisplays the manual pages for commands and programs.man command
mkdirCreates a new directory with the specified name.mkdir command
mountMounts a filesystem.mount command
mvMoves or renames files and directories.mv command
nanoA simple command-line text editor.nano editor
passwdChanges a user's password.passwd command
pingSends ICMP ECHO_REQUEST packets to network hosts to test connectivity.ping command
psReports a snapshot of current processes.ps command
pwdPrints the full pathname of the current working directory.pwd command
rebootReboots the system. Requires superuser privileges.reboot command
rmRemoves (deletes) files or directories.rm command
rmdirRemoves empty directories.rmdir command
shutdownBrings the system down in a secure way.shutdown command
sortSorts lines of text files.sort command
sshSecurely connects to a remote host over the network via the SSH protocol.ssh command
ssh-keygenGenerates, manages, and converts authentication keys for SSH.ssh-keygen command
sudoExecutes a command as another user, typically the superuser (root).sudo documentation
tailOutputs the last part of files. By default, displays the last 10 lines.tail command
tarAn archiving utility used to create, maintain, modify, and extract files from tar archives.tar command
topDisplays real-time information about running processes, including CPU and memory usage.top command
touchChanges file timestamps or creates empty files if they do not exist.touch command
unamePrints system information, such as kernel name, version, and architecture.uname command
unzipExtracts files from a ZIP archive.unzip command
uptimeTells how long the system has been running, and the load average.uptime command
vi / vimA powerful text editor with a steep learning curve but extensive features.vim editor
wgetDownloads files from the web via HTTP, HTTPS, or FTP protocols.wget command
whereisLocates the binary, source, and manual page files for a command.whereis command
whichShows the full path of shell commands.which command
whoamiPrints the effective username of the current user.whoami command
xargsBuilds and executes command lines from standard input.xargs command
yesOutputs a string repeatedly until killed. Often used to automate prompts.yes command
zipCompresses files into a ZIP archive.zip command