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_variable='something'
create a local variable |
export MY_ENV_VAR='something'
create an environment variable |
echo $MY_ENV_VAR
display value of a variable |
unset $MY_ENV_VAR
remove an environment 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]
exclamation 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 configuration files |
/dev |
device files |
/media |
Mount points for removable media such as CD-ROMs |
/mnt |
Temporarily mounted filesystems. |
/sbin |
Essential system binaries, e.g., fsck, init, route. |
/sys |
Contains information about devices, drivers, and some kernel features.[ |
/var |
Variable files—files whose content is expected to continually change during normal operation of the system—such as logs, spool files, and temporary e-mail files. |
|
|
|