Вы находитесь на странице: 1из 2

The Linux Commands

Reference Cheat Sheet


Terminal
mkdir Create a directory. Defaults to
clear Clear the terminal screen.
the current directory, but you
history Display recently used can also specify one.
commands. You can also view rmdir Delete a directory. Defaults to
these commands via the Up the current directory, but you
and Down keys. can also specify one. The
! Repeat a recently used target directory must be
command. You can use !n to completely empty.
repeat the n-th command in rename Change the name of a file or
history or !-n to repeat what set of files.
happened n commands ago. find Search a specific directory (or
man Display the manual for a your entire PC) to find files
terminal program. that match designated
whatis Display a brief description of a criteria.
terminal program. A simpler locate Search for files or directories.
alternative to the man Faster than the find
command. command, but has fewer
alias Create a shortcut to a options.
command or, when combined grep Search a specific file or set of
with the cd command, files to see if a string of text
directory. exists and where.
exit Exit or close the terminal. mount Attach a separate filesystem
(such as an external hard drive
Navigation & File Management or USB stick) to your system's
main filesystem.
cd Change directory. Used to umount Detach a separate filesystem
navigate between folders. from your system's main
pwd Display current directory. filesystem.
cd Change current directory. cat Display the contents of a text
ls Display a list of files in the file. Also works with multiple
current directory. files.
cp Makes a copy of a file. chmod Modify the read, write, and
Defaults to the current execute permissions of a file.
directory unless you specify a chown Change the user or group that
specific one. owns a file.
mv Move a file from one directory
to another.
rm Remove a file or set of files.
stat Display when a file was last
accessed, modified, or
changed.
touch Change the date accessed or
date modified time of a given
file to right now.
rmdir Delete a file or files.

Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com
Users
su Switch user. Unless you uptime Displays time since last boot.
desigate a specific user, this whereis Finds the executable file for a
command will attempt to sign program.
in as the root user (which you df Displays how much disk space
can think of as the system is used and free on your
administrator). system.
whoami Displays the current user free Displays how much RAM is
name. used and free on your system.
id Display current user and group.
passwd Create or update a user's Network Management
password.
ip Displays you IP address,
System Administration network interfaces, bandwidth
usage, and more.
uname Displays core system ping Send or receive data from
information such as kernel another computer on a
version, hardware, and network. Often used to test
operating system. whether a network connection
sudo Enter before a command to is established and the speed of
perform the command as a that connection.
system administrator. User dig Look up a domain's DNS
must have administrator address
priveleges for this to work. wget Download a file.
apt/dnf/pacman Programs for installing ssh Secure Shell. Connect and
software and updates. Which login to a remote network
one to use depends on your location.
Linux-based operating system.
Each requires administrator Miscellaneous
rights and additional
instructions, such as sudo apt echo Display a line of text. Often
install program-name. used in programs and scripts
jobs Display the status of all current to relay information to users.
jobs. A job is a representation factor Displays possible factors of a
of a running process or group decimal number.
of processes. expr Solve math equations.
bg Send a job to the background. look Look up a word in the
fg Send a job to the foreground. dictionary.
kill End a process according to its
process ID (which you can get
using the ps command.
killall End all processes whose
names match your query.
ps Display a list of running
processes. Defaults to
processes started by the
current user.
top Displays a list of running
processes, sorted by how
much CPU each uses. Unlike
ps, the command updates in
real-time.

Copyright © 2019 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com

Вам также может понравиться