A-Z of Linux - 40 Essential Commands PDF
A-Z of Linux - 40 Essential Commands PDF
System Information
date - Prints out the current system date and time. Specified parameters can change the format of
the output.
df - Reports the disk space usage for the file system.
hostname - Displays the name of the current host system.
ps - Displays information about all of the processes currently running on the system.
quota - Displays disk limits and current disk usage for a specified user. Useful when there are
multiple users assigned to a particular system.
top - Displays all of the top processes in the system, by default sorted by CPU usage.
uptime - Reports how long the system has been running since last boot. Extremely useful for
servers.
File Manipulation
bzip2 - Compresses specified contents into a .bz2 archive or extracts from a .bz2 archive depending
on parameters.
chmod / chown - Changes the access permissions of one or more files (chmod) or changes the
ownership of a particular file to a new user (chown). Only users with permission or ownership of a
file can change that files permissions or ownership.
cp - Copies files to a new location with a new name depending on the parameters. Can copy
directories too, whether recursively (includes all subdirectories) or not.
find / locate - Searches the system starting at a specific directory and matching all files within that
location to a set of conditions laid out by the command parameters. Very useful for quickly finding
certain files.
grep Searches through all of the files in a specified location trying to find files that contain lines
that match a given string. Returns a list of all the files that scored a match.
install - Used in conjunction with Makefiles to copy files from one location to the system. Not to be
confused with installing packages from a software repository.
mkdir / rmdir - Creates a directory (mkdir) or deletes a specified directory (rmdir). Directories can
only be created and deleted within directories that you have permission in.
mv - Moves files and directories to another location. Can be used to rename files and directories by
keep their source and destination locations the same.
open Opens a specified file using the default system application for files of its type.
rm - Remove and remove directory. Used to delete files and directories from the system, whether
one at a time or in batch.
tar - Creates a .tar archive or extracts from a .tar archive depending on specified parameters.
zip / unzip - Creates a .zip archive or extracts from a .zip archive depending on specified
parameters.