Show Menu
Cheatography

Linux Essentials Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Command line skills

history
show command history
Variables
my_var­iab­le=­'so­met­hing'
create a local variable
export MY_ENV­_VA­R='­som­ething'
create an enviro­nment variable
echo $MY_ENV_VAR
display value of a variable
unset $MY_EN­V_VAR
remove an enviro­nment variable
Globbing
*
asterisk represent zero or more character
?
question mark represent exactly one character
[a-d]
brackets represent possible value for a single character
[!a-d]
exclam­ation point neglect a range
 

File Hierarchy Standard (FHS).

/bin
Essential command binaries that need to be available in single user mode; for all users, e.g., cat, ls, cp.
/boot
bootloader files, e.g. Kernels
/etc
static config­uration files
/dev
device files
/media
Mount points for removable media such as CD-ROMs
/mnt
Tempor­arily mounted filesy­stems.
/sbin
Essential system binaries, e.g., fsck, init, route.
/sys
Contains inform­ation about devices, drivers, and some kernel features.[
/var
Variable files—­files whose content is expected to contin­ually change during normal operation of the system­—such as logs, spool files, and temporary e-mail files.