My Linux Book
Total Page:16
File Type:pdf, Size:1020Kb
My Linux Book Urs Lindegger My Linux Book Urs Lindegger Copyright © 2019-11-25 Urs Lindegger Table of Contents 1. Introduction .......................................................................................................... 1 Why again an other Linux Book .......................................................................... 1 About myself .................................................................................................... 1 Some terms ...................................................................................................... 2 TUX ........................................................................................................ 2 root ......................................................................................................... 3 Daemon ................................................................................................... 3 Zombie .................................................................................................... 3 N00b ....................................................................................................... 3 Gnu ......................................................................................................... 4 SoHo ....................................................................................................... 4 CamelCase ............................................................................................... 4 Foo, bar and foobar ................................................................................... 4 rc and init.d .............................................................................................. 4 shebang .................................................................................................... 4 Help ................................................................................................................ 4 Using the manual pages .............................................................................. 4 Man pages on the web ............................................................................... 5 Info pages ................................................................................................ 5 Using documentation from the packages ........................................................ 5 Writing your own man pages ....................................................................... 6 2. Working in the Console .......................................................................................... 7 The Console ..................................................................................................... 7 Console login ............................................................................................ 7 Terminals ................................................................................................. 8 Screen Manager ........................................................................................ 8 Working with bash .................................................................................... 8 Special characters .................................................................................... 11 Wild cards .............................................................................................. 11 Strings in Bash ........................................................................................ 12 Calculations ............................................................................................ 13 Command substitution .............................................................................. 13 Bash scripts ............................................................................................ 14 Bash processes ........................................................................................ 14 Bash variables ......................................................................................... 15 The [ program ......................................................................................... 19 Bracket overview ..................................................................................... 20 Debug of bash scripts ............................................................................... 20 Bash configuration ................................................................................... 22 Working with Windows ............................................................................ 22 Commands ...................................................................................................... 22 Midnight commander ................................................................................ 23 Text Web browser Links ........................................................................... 23 cat ......................................................................................................... 23 cd .......................................................................................................... 23 cp .......................................................................................................... 23 cut ......................................................................................................... 24 dd .......................................................................................................... 24 find ....................................................................................................... 24 grep ....................................................................................................... 25 ls ........................................................................................................... 25 more or less ............................................................................................ 26 mv ......................................................................................................... 26 rm and rmdir ........................................................................................... 26 strings .................................................................................................... 26 iv My Linux Book tail ......................................................................................................... 26 Time ...................................................................................................... 26 uname .................................................................................................... 26 watch ..................................................................................................... 27 Sed ................................................................................................................ 27 Filtering certain lines ................................................................................ 27 Sed Commands ........................................................................................ 28 Sed Options ............................................................................................ 28 Regular expressions .......................................................................................... 28 Character description ................................................................................ 28 Examples ................................................................................................ 28 Ranges of characters ................................................................................. 29 Localization .................................................................................................... 29 3. System ............................................................................................................... 31 Character encoding ........................................................................................... 31 ASCII .................................................................................................... 31 ASCII Table ........................................................................................... 31 UTF-8 .................................................................................................... 32 beep ....................................................................................................... 34 Hexadecimal ................................................................................................... 34 Booting .......................................................................................................... 35 BIOS ..................................................................................................... 35 BIOS update ........................................................................................... 35 UEFI ..................................................................................................... 36 Secure Boot ............................................................................................ 38 Bootloader .............................................................................................. 38 Booting the Kernel ........................................................................................... 40 SysVinit ................................................................................................. 41 systemd .................................................................................................. 45 Start up messages ............................................................................................ 48 Linux 32 bit and 64 bit ....................................................................................