21 Shell Basics 299
21.1 Starting a Shell . . . . . . . . . . . . . . . . . . . . . . . . . 300
21.2 Entering Commands . . . . . . . . . . . . . . . . . . . . . . . 301
21.3 Working with Files and Directories . . . . . . . . . . . . . . . . . 305
21.4 Becoming Root . . . . . . . . . . . . . . . . . . . . . . . . . 309
21.5 File Access Permissions . . . . . . . . . . . . . . . . . . . . . . 311
21.6 Useful Features of the Shell . . . . . . . . . . . . . . . . . . . . 316
21.7 Editing Texts . . . . . . . . . . . . . . . . . . . . . . . . . . 320
21.8 Searching for Files or Contents . . . . . . . . . . . . . . . . . . . 322
21.9 Viewing Text Files . . . . . . . . . . . . . . . . . . . . . . . . 323
21.10 Redirection and Pipes . . . . . . . . . . . . . . . . . . . . . . . 324
21.11 Starting Programs and Handling Processes . . . . . . . . . . . . . . 326
21.12 Important Linux Commands . . . . . . . . . . . . . . . . . . . . 327
22 Bash and Bash Scripts 339
22.1 What is “The Shell”? . . . . . . . . . . . . . . . . . . . . . . . 339
22.2 Writing Shell Scripts . . . . . . . . . . . . . . . . . . . . . . . 345
22.3 Redirecting Command Events . . . . . . . . . . . . . . . . . . . 346
22.4 Using Aliases . . . . . . . . . . . . . . . . . . . . . . . . . . 347
22.5 Using Variables in Bash . . . . . . . . . . . . . . . . . . . . . . 348
22.6 Grouping And Combining Commands . . . . . . . . . . . . . . . . 350
22.7 Working with Common Flow Constructs . . . . . . . . . . . . . . . 351
22.8 For More Information . . . . . . . . . . . . . . . . . . . . . . 352
Part V Services 355
23 Basic Networking 357
23.1 IP Addresses and Routing . . . . . . . . . . . . . . . . . . . . . 360
23.2 IPv6—The Next Generation Internet . . . . . . . . . . . . . . . . 363
23.3 Name Resolution . . . . . . . . . . . . . . . . . . . . . . . . 373
23.4 Conguring a Network Connection with YaST . . . . . . . . . . . . 374
23.5 NetworkManager . . . . . . . . . . . . . . . . . . . . . . . . 395
23.6 Conguring a Network Connection Manually . . . . . . . . . . . . . 397
23.7 smpppd as Dial-up Assistant . . . . . . . . . . . . . . . . . . . . 414
24 SLP Services in the Network 417
24.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
24.2 Activating SLP . . . . . . . . . . . . . . . . . . . . . . . . . . 418
24.3 SLP Front-Ends in openSUSE . . . . . . . . . . . . . . . . . . . . 418
24.4 Installation over SLP . . . . . . . . . . . . . . . . . . . . . . . 418
24.5 Providing Services via SLP . . . . . . . . . . . . . . . . . . . . . 419