marc:linux:rhcsa8_uittreksel
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| marc:linux:rhcsa8_uittreksel [2021/11/21 11:54] – [Log monitoring:] marcv | marc:linux:rhcsa8_uittreksel [2021/12/02 21:49] (current) – [FHS; File Hierarchy Standard:] marcv | ||
|---|---|---|---|
| Line 118: | Line 118: | ||
| echo $PWD | echo $PWD | ||
| EOF</ | EOF</ | ||
| + | |||
| + | **The double "<<" | ||
| The print.sh file now contains: | The print.sh file now contains: | ||
| Line 243: | Line 245: | ||
| * etc | * etc | ||
| + | ===== Root privileges: ===== | ||
| + | |||
| + | Become root using: | ||
| + | < | ||
| + | |||
| + | The minus ensures that correct environment (variables) is loaded so don't use '' | ||
| + | If configured properly (sudo is installed and user is member of group //wheel//), you can also do: | ||
| + | < | ||
| + | |||
| + | ===== Setting up a rhel server: ===== | ||
| + | * 10Gb root partition | ||
| + | * 1Gb swap | ||
| + | * 4Gb unused space | ||
| + | |||
| + | |||
| + | ===== CLI commands: ===== | ||
| + | * pwd | ||
| + | * whoami | ||
| + | * ls (-l) | ||
| + | * ip addr show | ||
| + | * free (-m) | ||
| + | * df (-h) | ||
| + | * cat //file// | ||
| + | * findmnt | ||
| + | |||
| + | ===== Understanding the shell: ===== | ||
| + | * tab completion | ||
| + | * history | ||
| + | * piping | ||
| + | * redirectorion | ||
| + | * environment variables: '' | ||
| + | * aliases: '' | ||
| + | |||
| + | ===== FHS; File Hierarchy Standard: ===== | ||
| + | |||
| + | * Maintained by the Linux Foundation | ||
| + | * Starting point is root directory: / | ||
| + | * The directory location does not say anything about the location and/or device; various drives/ | ||
| + | * Some important directories: | ||
| + | * /boot: contains everything needed to boot the system:< | ||
| + | -rw-r--r-- 1 root root | ||
| + | drwx------ 2 root root 4096 jan 1 1970 efi | ||
| + | drwxr-xr-x 4 root root 4096 dec 1 13:46 grub | ||
| + | lrwxrwxrwx 1 root root 27 nov 30 06:55 initrd.img -> initrd.img-5.4.0-91-generic | ||
| + | -rw-r--r-- 1 root root 52057331 nov 23 08:05 initrd.img-5.4.0-90-generic | ||
| + | -rw-r--r-- 1 root root 52057689 nov 30 06:56 initrd.img-5.4.0-91-generic | ||
| + | lrwxrwxrwx 1 root root 27 nov 30 06:55 initrd.img.old -> initrd.img-5.4.0-90-generic | ||
| + | -rw-r--r-- 1 root root | ||
| + | -rw-r--r-- 1 root root | ||
| + | -rw-r--r-- 1 root root | ||
| + | -rw------- 1 root root 4755119 okt 15 19:56 System.map-5.4.0-90-generic | ||
| + | -rw------- 1 root root 4755132 nov 5 17:02 System.map-5.4.0-91-generic | ||
| + | lrwxrwxrwx 1 root root 24 nov 30 06:55 vmlinuz -> vmlinuz-5.4.0-91-generic (KERNEL) | ||
| + | -rw------- 1 root root 11780352 okt 15 21:36 vmlinuz-5.4.0-90-generic (KERNEL) | ||
| + | -rw------- 1 root root 11784448 nov 5 17:04 vmlinuz-5.4.0-91-generic (KERNEL) | ||
| + | lrwxrwxrwx 1 root root 24 nov 30 06:55 vmlinuz.old -> vmlinuz-5.4.0-90-generic (KERNEL)</ | ||
| + | * /dev: contains devices (harddrives, | ||
| + | * /etc: contains configuration files | ||
| + | * /home: contains the homedirectories for normal users | ||
| + | * /usr: compares to " | ||
| + | * /usr/bin containing binaries for everybody | ||
| + | * /usr/sbin containing system binaries that only root can use | ||
| + | * /var: for variable files (websites, printerspool, | ||
| + | * see '' | ||
| + | 01-02-6 | ||
marc/linux/rhcsa8_uittreksel.1637492041.txt.gz · Last modified: (external edit)
