Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Using and administering Linux. Volume 1
PREMIUM
Số trang
645
Kích thước
17.6 MB
Định dạng
PDF
Lượt xem
1195

Using and administering Linux. Volume 1

Nội dung xem thử

Mô tả chi tiết

Using and

Administering

Linux: Volume 1

Zero to SysAdmin: Getting Started

David Both

Using and Administering

Linux: Volume 1

Zero to SysAdmin: Getting Started

David Both

Using and Administering Linux: Volume 1

ISBN-13 (pbk): 978-1-4842-5048-8 ISBN-13 (electronic): 978-1-4842-5049-5

https://doi.org/10.1007/978-1-4842-5049-5

Copyright © 2020 by David Both

This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the

material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,

broadcasting, reproduction on microfilms or in any other physical way, and transmission or information

storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now

known or hereafter developed.

Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with

every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an

editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the

trademark.

The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not

identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to

proprietary rights.

While the advice and information in this book are believed to be true and accurate at the date of publication,

neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or

omissions that may be made. The publisher makes no warranty, express or implied, with respect to the

material contained herein.

Managing Director, Apress Media LLC: Welmoed Spahr

Acquisitions Editor: Louise Corrigan

Development Editor: James Markham

Coordinating Editor: Nancy Chen

Cover designed by eStudioCalamar

Cover image designed by Freepik (www.freepik.com)

Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street,

6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer￾sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member

(owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a

Delaware corporation.

For information on translations, please e-mail [email protected], or visit http://www.apress.com/

rights-permissions.

Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and

licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales

web page at http://www.apress.com/bulk-sales.

Any source code or other supplementary material referenced by the author in this book is available to

readers on GitHub via the book’s product page, located at www.apress.com/9781484250488. For more

detailed information, please visit http://www.apress.com/source-code.

Printed on acid-free paper

David Both

Raleigh, NC, USA

This book – this course – is dedicated to all Linux and

open source course developers and trainers.

:(){ :|:& };:

v

Chapter 1: Introduction 1

Objectives ������������������������������������������������������������������������������������������������������������������������������������� 1

About Linux ����������������������������������������������������������������������������������������������������������������������������������� 1

The birth of Windows �������������������������������������������������������������������������������������������������������������������� 3

Black box syndrome ���������������������������������������������������������������������������������������������������������������� 3

The birth of Linux��������������������������������������������������������������������������������������������������������������������� 5

The open box ��������������������������������������������������������������������������������������������������������������������������� 6

The Linux Truth������������������������������������������������������������������������������������������������������������������������������ 7

Knowledge������������������������������������������������������������������������������������������������������������������������������� 8

Flexibility ��������������������������������������������������������������������������������������������������������������������������������� 9

Stability ��������������������������������������������������������������������������������������������������������������������������������� 10

Scalability������������������������������������������������������������������������������������������������������������������������������ 11

Security ��������������������������������������������������������������������������������������������������������������������������������� 11

Freedom �������������������������������������������������������������������������������������������������������������������������������� 12

Longevity ������������������������������������������������������������������������������������������������������������������������������� 13

Should I be a SysAdmin? ������������������������������������������������������������������������������������������������������������ 15

About this course������������������������������������������������������������������������������������������������������������������������ 17

About the experiments���������������������������������������������������������������������������������������������������������������� 18

What to do if the experiments do not work��������������������������������������������������������������������������������� 20

Terminology �������������������������������������������������������������������������������������������������������������������������������� 21

Table of Contents

About the Author xix

About the Technical Reviewer xxi

Acknowledgments xxiii

Introduction xxv

vi

How to access the command line����������������������������������������������������������������������������������������������� 21

Chapter summary ����������������������������������������������������������������������������������������������������������������������� 22

Exercises������������������������������������������������������������������������������������������������������������������������������������� 22

Chapter 2: Introduction to Operating Systems 23

Objectives ����������������������������������������������������������������������������������������������������������������������������������� 23

Choice – Really! �������������������������������������������������������������������������������������������������������������������������� 23

What is an operating system?����������������������������������������������������������������������������������������������������� 24

Hardware������������������������������������������������������������������������������������������������������������������������������� 25

The operating system������������������������������������������������������������������������������������������������������������ 30

Typical operating system functions �������������������������������������������������������������������������������������������� 31

Memory management ����������������������������������������������������������������������������������������������������������� 32

Multitasking��������������������������������������������������������������������������������������������������������������������������� 32

Multiuser ������������������������������������������������������������������������������������������������������������������������������� 33

Process management������������������������������������������������������������������������������������������������������������ 34

Interprocess communication������������������������������������������������������������������������������������������������� 35

Device management�������������������������������������������������������������������������������������������������������������� 35

Error handling������������������������������������������������������������������������������������������������������������������������ 36

Utilities���������������������������������������������������������������������������������������������������������������������������������������� 36

A bit of history����������������������������������������������������������������������������������������������������������������������������� 37

Starting with UNICS��������������������������������������������������������������������������������������������������������������� 37

UNIX��������������������������������������������������������������������������������������������������������������������������������������� 38

A (very) brief history of Linux ������������������������������������������������������������������������������������������������ 41

Core utilities�������������������������������������������������������������������������������������������������������������������������������� 41

GNU coreutils������������������������������������������������������������������������������������������������������������������������� 42

util-linux �������������������������������������������������������������������������������������������������������������������������������� 43

Copyleft ��������������������������������������������������������������������������������������������������������������������������������� 44

Games ����������������������������������������������������������������������������������������������������������������������������������������� 44

Chapter summary ����������������������������������������������������������������������������������������������������������������������� 45

Exercises������������������������������������������������������������������������������������������������������������������������������������� 45

Table of Contents

vii

Chapter 3: The Linux Philosophy for SysAdmins 47

Objectives ����������������������������������������������������������������������������������������������������������������������������������� 47

Background��������������������������������������������������������������������������������������������������������������������������������� 47

The structure of the philosophy �������������������������������������������������������������������������������������������������� 48

The tenets ����������������������������������������������������������������������������������������������������������������������������������� 50

Data streams are a universal interface ��������������������������������������������������������������������������������� 50

Transforming data streams ��������������������������������������������������������������������������������������������������� 51

Everything is a file����������������������������������������������������������������������������������������������������������������� 52

Use the Linux FHS ����������������������������������������������������������������������������������������������������������������� 52

Embrace the CLI �������������������������������������������������������������������������������������������������������������������� 53

Be the lazy SysAdmin������������������������������������������������������������������������������������������������������������ 54

Automate everything ������������������������������������������������������������������������������������������������������������� 54

Always use shell scripts �������������������������������������������������������������������������������������������������������� 55

Test early test often��������������������������������������������������������������������������������������������������������������� 55

Use common sense naming �������������������������������������������������������������������������������������������������� 56

Store data in open formats���������������������������������������������������������������������������������������������������� 57

Use separate filesystems for data����������������������������������������������������������������������������������������� 58

Make programs portable ������������������������������������������������������������������������������������������������������� 59

Use open source software����������������������������������������������������������������������������������������������������� 60

Strive for elegance ���������������������������������������������������������������������������������������������������������������� 61

Find the simplicity ����������������������������������������������������������������������������������������������������������������� 61

Use your favorite editor��������������������������������������������������������������������������������������������������������� 63

Document everything ������������������������������������������������������������������������������������������������������������ 63

Back up everything – frequently ������������������������������������������������������������������������������������������� 65

Follow your curiosity ������������������������������������������������������������������������������������������������������������� 65

There is no should ����������������������������������������������������������������������������������������������������������������� 66

Mentor the young SysAdmins������������������������������������������������������������������������������������������������ 67

Support your favorite open source project���������������������������������������������������������������������������� 67

Reality bytes�������������������������������������������������������������������������������������������������������������������������� 68

Chapter summary ����������������������������������������������������������������������������������������������������������������������� 69

Exercises������������������������������������������������������������������������������������������������������������������������������������� 69

Table of Contents

viii

Chapter 4: Preparation 71

Objectives ����������������������������������������������������������������������������������������������������������������������������������� 71

Overview������������������������������������������������������������������������������������������������������������������������������������� 71

Got root? ������������������������������������������������������������������������������������������������������������������������������������� 72

Hardware specifications ������������������������������������������������������������������������������������������������������������� 73

Host software requirements ������������������������������������������������������������������������������������������������������� 74

Installing VirtualBox �������������������������������������������������������������������������������������������������������������������� 75

Install VirtualBox on a Linux host ������������������������������������������������������������������������������������������ 75

Install VirtualBox on a Windows host������������������������������������������������������������������������������������� 82

Creating the VM��������������������������������������������������������������������������������������������������������������������������� 86

VirtualBox Manager��������������������������������������������������������������������������������������������������������������� 86

Configuring the virtual network��������������������������������������������������������������������������������������������� 88

Preparing disk space������������������������������������������������������������������������������������������������������������� 90

Download the ISO image file ����������������������������������������������������������������������������������������������� 104

Creating the VM������������������������������������������������������������������������������������������������������������������� 105

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 114

Exercises����������������������������������������������������������������������������������������������������������������������������������� 115

Chapter 5: Installing Linux 117

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 117

Overview����������������������������������������������������������������������������������������������������������������������������������� 117

Boot the Fedora live image�������������������������������������������������������������������������������������������������� 118

Installing Fedora ����������������������������������������������������������������������������������������������������������������������� 123

Start the installation ������������������������������������������������������������������������������������������������������������ 124

Set the hostname ���������������������������������������������������������������������������������������������������������������� 125

Hard drive partitioning��������������������������������������������������������������������������������������������������������� 126

About swap space ��������������������������������������������������������������������������������������������������������������� 136

Begin the installation ���������������������������������������������������������������������������������������������������������������� 140

Set the root password ��������������������������������������������������������������������������������������������������������� 141

Create the student user������������������������������������������������������������������������������������������������������� 143

Finishing the installation����������������������������������������������������������������������������������������������������������� 144

Exit the installer������������������������������������������������������������������������������������������������������������������� 144

Table of Contents

ix

Shut down the Live system������������������������������������������������������������������������������������������������������� 145

Reconfigure the VM ������������������������������������������������������������������������������������������������������������� 146

Create a snapshot��������������������������������������������������������������������������������������������������������������������� 146

First boot����������������������������������������������������������������������������������������������������������������������������������� 148

What to do if the experiments do not work������������������������������������������������������������������������������� 149

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 151

Exercises����������������������������������������������������������������������������������������������������������������������������������� 151

Chapter 6: Using the Xfce Desktop 153

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 153

Why Xfce ����������������������������������������������������������������������������������������������������������������������������������� 153

The desktop������������������������������������������������������������������������������������������������������������������������� 154

The file manager ����������������������������������������������������������������������������������������������������������������� 156

Stability ������������������������������������������������������������������������������������������������������������������������������� 156

xfce4-terminal emulator������������������������������������������������������������������������������������������������������ 156

Configurability ��������������������������������������������������������������������������������������������������������������������� 157

Getting started �������������������������������������������������������������������������������������������������������������������������� 157

Login ����������������������������������������������������������������������������������������������������������������������������������������� 159

Exploring the Xfce desktop ������������������������������������������������������������������������������������������������������� 162

Settings Manager ���������������������������������������������������������������������������������������������������������������� 165

Adding launchers to Panel 2������������������������������������������������������������������������������������������������ 166

Preferred applications ��������������������������������������������������������������������������������������������������������� 168

Desktop appearance ����������������������������������������������������������������������������������������������������������������� 170

Appearance ������������������������������������������������������������������������������������������������������������������������� 170

Multiple desktops���������������������������������������������������������������������������������������������������������������������� 173

Installing updates���������������������������������������������������������������������������������������������������������������������� 175

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 178

Exercises����������������������������������������������������������������������������������������������������������������������������������� 179

Chapter 7: Using the Linux Command Line 181

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 181

Introduction������������������������������������������������������������������������������������������������������������������������������� 181

Table of Contents

x

Preparation ������������������������������������������������������������������������������������������������������������������������������� 182

Defining the command line������������������������������������������������������������������������������������������������������� 183

CLI terminology ������������������������������������������������������������������������������������������������������������������������� 183

Command prompt���������������������������������������������������������������������������������������������������������������� 184

Command line ��������������������������������������������������������������������������������������������������������������������� 184

Command-line interface������������������������������������������������������������������������������������������������������ 184

Command ���������������������������������������������������������������������������������������������������������������������������� 185

Terminal������������������������������������������������������������������������������������������������������������������������������� 185

Console�������������������������������������������������������������������������������������������������������������������������������� 187

Virtual consoles ������������������������������������������������������������������������������������������������������������������� 188

Terminal emulator ��������������������������������������������������������������������������������������������������������������� 195

Pseudo-terminal������������������������������������������������������������������������������������������������������������������ 196

Session�������������������������������������������������������������������������������������������������������������������������������� 197

Shell������������������������������������������������������������������������������������������������������������������������������������� 198

Secure Shell (SSH)��������������������������������������������������������������������������������������������������������������� 201

screen���������������������������������������������������������������������������������������������������������������������������������� 201

The GUI and the CLI������������������������������������������������������������������������������������������������������������������� 204

Some important Linux commands �������������������������������������������������������������������������������������������� 205

The PWD������������������������������������������������������������������������������������������������������������������������������ 206

Directory path notation styles ��������������������������������������������������������������������������������������������� 206

Moving around the directory tree���������������������������������������������������������������������������������������� 207

Tab completion facility��������������������������������������������������������������������������������������������������������� 212

Exploring files���������������������������������������������������������������������������������������������������������������������� 214

More commands������������������������������������������������������������������������������������������������������������������ 217

Command recall and editing����������������������������������������������������������������������������������������������������� 220

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 223

Exercises����������������������������������������������������������������������������������������������������������������������������������� 223

Chapter 8: Core Utilities 225

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 225

GNU coreutils ���������������������������������������������������������������������������������������������������������������������������� 225

util-linux������������������������������������������������������������������������������������������������������������������������������������ 230

Table of Contents

xi

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 236

Exercises����������������������������������������������������������������������������������������������������������������������������������� 237

Chapter 9: Data Streams 239

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 239

Data streams as raw materials������������������������������������������������������������������������������������������������� 239

Text streams – A universal interface����������������������������������������������������������������������������������������� 241

STDIO file handles��������������������������������������������������������������������������������������������������������������������� 241

Preparing a USB thumb drive ���������������������������������������������������������������������������������������������� 242

Generating data streams����������������������������������������������������������������������������������������������������������� 247

Test a theory with yes��������������������������������������������������������������������������������������������������������������� 250

Exploring the USB drive ������������������������������������������������������������������������������������������������������������ 254

Randomness ����������������������������������������������������������������������������������������������������������������������������� 261

Pipe dreams ������������������������������������������������������������������������������������������������������������������������������ 262

Building pipelines ��������������������������������������������������������������������������������������������������������������������� 264

Redirection�������������������������������������������������������������������������������������������������������������������������������� 265

Just grep’ing around����������������������������������������������������������������������������������������������������������������� 268

Cleanup������������������������������������������������������������������������������������������������������������������������������������� 269

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 270

Exercises����������������������������������������������������������������������������������������������������������������������������������� 271

Chapter 10: Text Editors 273

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 273

Why we need text editors ��������������������������������������������������������������������������������������������������������� 273

Vim�������������������������������������������������������������������������������������������������������������������������������������������� 275

Other editors ����������������������������������������������������������������������������������������������������������������������������� 276

Emacs���������������������������������������������������������������������������������������������������������������������������������� 276

gedit ������������������������������������������������������������������������������������������������������������������������������������ 276

Leafpad�������������������������������������������������������������������������������������������������������������������������������� 277

Kate ������������������������������������������������������������������������������������������������������������������������������������� 277

xfw��������������������������������������������������������������������������������������������������������������������������������������� 277

xed��������������������������������������������������������������������������������������������������������������������������������������� 277

Table of Contents

xii

Learning Vim����������������������������������������������������������������������������������������������������������������������������� 277

Disabling SELinux���������������������������������������������������������������������������������������������������������������� 278

Use your favorite text editor������������������������������������������������������������������������������������������������������ 280

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 281

Exercises����������������������������������������������������������������������������������������������������������������������������������� 281

Chapter 11: Working As Root 283

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 283

Why root?���������������������������������������������������������������������������������������������������������������������������������� 283

More about the su command���������������������������������������������������������������������������������������������������� 284

Getting to know the root account���������������������������������������������������������������������������������������������� 286

Disadvantages of root ��������������������������������������������������������������������������������������������������������������� 292

Escalating user privilege����������������������������������������������������������������������������������������������������������� 293

The bad ways ���������������������������������������������������������������������������������������������������������������������� 293

Using sudo��������������������������������������������������������������������������������������������������������������������������� 293

Using su as root ������������������������������������������������������������������������������������������������������������������������ 305

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 306

Exercises����������������������������������������������������������������������������������������������������������������������������������� 306

Chapter 12: Installing and Updating Software 309

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 309

Dependency hell������������������������������������������������������������������������������������������������������������������ 309

RPM������������������������������������������������������������������������������������������������������������������������������������������� 310

YUM������������������������������������������������������������������������������������������������������������������������������������������� 315

DNF ������������������������������������������������������������������������������������������������������������������������������������������� 316

Installing packages�������������������������������������������������������������������������������������������������������������� 317

Installing updates ���������������������������������������������������������������������������������������������������������������� 320

Post-update tasks ��������������������������������������������������������������������������������������������������������������� 323

Removing packages ������������������������������������������������������������������������������������������������������������ 324

Groups��������������������������������������������������������������������������������������������������������������������������������������� 326

Adding repositories������������������������������������������������������������������������������������������������������������������� 327

Table of Contents

xiii

About the kernel������������������������������������������������������������������������������������������������������������������������ 330

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 332

Exercises����������������������������������������������������������������������������������������������������������������������������������� 332

Chapter 13: Tools for Problem Solving 335

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 335

The art of problem solving �������������������������������������������������������������������������������������������������������� 336

The five steps of problem solving���������������������������������������������������������������������������������������� 336

Knowledge��������������������������������������������������������������������������������������������������������������������������� 337

Observation ������������������������������������������������������������������������������������������������������������������������� 338

Reasoning���������������������������������������������������������������������������������������������������������������������������� 339

Action ���������������������������������������������������������������������������������������������������������������������������������� 340

Test�������������������������������������������������������������������������������������������������������������������������������������� 340

System performance and problem solving ������������������������������������������������������������������������������� 341

top ��������������������������������������������������������������������������������������������������������������������������������������� 342

Other top-like tools ������������������������������������������������������������������������������������������������������������������� 358

htop ������������������������������������������������������������������������������������������������������������������������������������� 359

atop ������������������������������������������������������������������������������������������������������������������������������������� 361

More tools ��������������������������������������������������������������������������������������������������������������������������������� 364

Memory tools����������������������������������������������������������������������������������������������������������������������� 364

Tools that display disk I/O statistics ������������������������������������������������������������������������������������ 366

The /proc filesystem ����������������������������������������������������������������������������������������������������������������� 369

Exploring hardware������������������������������������������������������������������������������������������������������������������� 372

Monitoring hardware temperatures ������������������������������������������������������������������������������������������ 374

Monitoring hard drives �������������������������������������������������������������������������������������������������������� 377

System statistics with SAR ������������������������������������������������������������������������������������������������������� 386

Installation and configuration���������������������������������������������������������������������������������������������� 386

Examining collected data ���������������������������������������������������������������������������������������������������� 386

Cleanup������������������������������������������������������������������������������������������������������������������������������������� 391

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 392

Exercises����������������������������������������������������������������������������������������������������������������������������������� 393

Table of Contents

xiv

Chapter 14: Terminal Emulator Mania 395

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 395

About terminals������������������������������������������������������������������������������������������������������������������������� 395

My requirements����������������������������������������������������������������������������������������������������������������������� 396

rxvt �������������������������������������������������������������������������������������������������������������������������������������� 398

xfce4-terminal��������������������������������������������������������������������������������������������������������������������� 398

LXTerminal��������������������������������������������������������������������������������������������������������������������������� 402

Tilix �������������������������������������������������������������������������������������������������������������������������������������� 404

Konsole�������������������������������������������������������������������������������������������������������������������������������� 410

Terminator ��������������������������������������������������������������������������������������������������������������������������� 412

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 415

Exercises����������������������������������������������������������������������������������������������������������������������������������� 415

Chapter 15: Advanced Shell Topics 417

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 417

The Bash shell��������������������������������������������������������������������������������������������������������������������������� 418

Shell options ����������������������������������������������������������������������������������������������������������������������������� 418

Shell variables��������������������������������������������������������������������������������������������������������������������������� 420

Commands�������������������������������������������������������������������������������������������������������������������������������� 421

The PATH ����������������������������������������������������������������������������������������������������������������������������� 422

Internal commands�������������������������������������������������������������������������������������������������������������� 424

External commands������������������������������������������������������������������������������������������������������������� 427

Forcing the use of external commands ������������������������������������������������������������������������������� 428

Compound commands �������������������������������������������������������������������������������������������������������������� 429

Time-saving tools���������������������������������������������������������������������������������������������������������������������� 433

Brace expansion������������������������������������������������������������������������������������������������������������������ 433

Special pattern characters �������������������������������������������������������������������������������������������������� 435

Sets ������������������������������������������������������������������������������������������������������������������������������������� 438

Meta-characters������������������������������������������������������������������������������������������������������������������ 440

Using grep��������������������������������������������������������������������������������������������������������������������������������� 440

Finding files ������������������������������������������������������������������������������������������������������������������������������ 445

Table of Contents

xv

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 448

Exercises����������������������������������������������������������������������������������������������������������������������������������� 448

Chapter 16: Linux Boot and Startup 451

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 451

Overview����������������������������������������������������������������������������������������������������������������������������������� 451

Hardware boot �������������������������������������������������������������������������������������������������������������������������� 452

Linux boot ��������������������������������������������������������������������������������������������������������������������������������� 453

GRUB ����������������������������������������������������������������������������������������������������������������������������������� 454

Configuring GRUB���������������������������������������������������������������������������������������������������������������� 464

The Linux kernel������������������������������������������������������������������������������������������������������������������ 470

Linux startup����������������������������������������������������������������������������������������������������������������������������� 471

systemd������������������������������������������������������������������������������������������������������������������������������� 471

Graphical login screen��������������������������������������������������������������������������������������������������������� 478

About the login�������������������������������������������������������������������������������������������������������������������������� 487

CLI login screen������������������������������������������������������������������������������������������������������������������� 487

GUI login screen ������������������������������������������������������������������������������������������������������������������ 488

Chapter summary ��������������������������������������������������������������������������������������������������������������������� 489

Exercises����������������������������������������������������������������������������������������������������������������������������������� 490

Chapter 17: Shell Configuration 491

Objectives ��������������������������������������������������������������������������������������������������������������������������������� 491

Starting the shell����������������������������������������������������������������������������������������������������������������������� 492

Non-login shell startup�������������������������������������������������������������������������������������������������������� 495

Login shell startup��������������������������������������������������������������������������������������������������������������� 495

Exploring the global configuration scripts��������������������������������������������������������������������������� 496

Exploring the local configuration scripts ����������������������������������������������������������������������������� 499

Testing it������������������������������������������������������������������������������������������������������������������������������ 500

Exploring the environment�������������������������������������������������������������������������������������������������������� 504

User shell variables ������������������������������������������������������������������������������������������������������������� 505

Table of Contents

Tải ngay đi em, còn do dự, trời tối mất!