64
Chapter 3 System Administration - 2

Chapter 3 System Administration - 2. Overview The core components of a modern operating system How to use the command line interface (CLI) Basic

Embed Size (px)

Citation preview

Page 1: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

Chapter 3

System Administration - 2

Page 2: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

2

Overview The core components of a modern operating

system How to use the command line interface (CLI) Basic operations to navigate the file system File permissions for users and groups User account management Software management

An operating system and its use Hands-on chapter

Page 3: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

3

Operating system Definition

Software that manages computer hardware and provides common services to user applications

Application developers can ignore the details of the underlying hardware when developing applications

Greatly simplifies application development

Page 4: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

4

Operating system Components

Kernel Controls hardware devices Manages memory Executes code on the computer’s CPU Hides details of underlying physical hardware

from applications Shell

Text-based program that allows the user to interact directly with the kernel

Page 5: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

5

Operating system structure

Page 6: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

6

Shell Primary interface for system administrators

Direct access to OS structures In plain English

Low network bandwidth needs Scripting (automation) capabilities

Windows PowerShell runs as a separate program

Relatively new introduction to the OS (Windows 7, Server 2008)

Unix Ready on OS start-up Easily accessible from Windows Focus of course

Page 7: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

7

Unix shell history

NameDevelope

r

1st Relea

seDetails

Bourne Shell (sh)

Stephen Bourne

1977 De facto standard on Unix. Every major Unix-based OS includes at least one Bourne-compatible shell

C Shell (csh)

Bill Joy 1978 Syntax is based on the C programming language. Popular for interactive use, but not recommended for use as a general scripting language.

Korn Shell (ksh)

David Korn

1983 POSIX 1003.2 compliant, Bourne-compatible and added many features needed for shell scripting.

Bourne-again Shell (bash)

Brian Fox 1989 Open-source replacement for Bourne Shell. Very popular for both interactive use and scripting. Combines features from C shell and Korn shell and adds many of its own enhancements. Default shell on Mac OSX and most Linux distributions.

Page 8: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

8

Bash prompt

Page 9: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

9

Bash prompt information [alice@sunshineusr]$

Logged in user name

Computer connected to (in a data center, you may be connected to one of thousands of

computers)

Current folder

Current privileges$ => ordinary privileges# => root privileges

Page 10: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

10

Common operations File navigation File management File content viewing and editing Search Access control User management Access control lists File permissions Software installation and updates

Page 11: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

11

File system navigation

Page 12: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

12

File system navigation Filesystem root

Top of the file hierarchy Represented as a single slash

/

Path Location of a file or directory in the hierarchy Representation

Two ways Absolute Relative

Page 13: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

13

Path representation

Type Description Examples

Absolute

• Exact location of file or folder being referenced

• Includes each directory above the final one, up to the file system root

/usr/tmp/hello.txt/home/bob/sample/file2.txt

Relative

• Location of the file or folder in relation to the current directory

hello.txtsample/file2.txt

Page 14: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

14

Case sensitivity UNIX file systems are case sensitive

/usr ≠ /Usr, or /USR, or /usR etc

/home/bob/sample/file2.txt ≠ /home/Bob/sample/file2.txt, or /home/BOB/sample/file2.txt, or /Home/bob/sample/file2.txt etc

Page 15: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

15

Moving around pwd

Present Working Directory e.g.

[alice@sunshine ~]$ pwd [alice@sunshine ~]$ /home/alice

cd Change Directory e.g.

[alice@sunshine ~]$ cd /usr/bin (absolute path specified) [alice@sunshine bin]$ pwd [alice@sunshine bin]$ /usr/bin

~ Indicates home directory

Page 16: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

16

Commands, options, arguments On the previous slide

cd – command /usr/bin – argument

Command Direction to the computer to perform something

Argument Relevant information to the computer to help

execute the command, e.g. If you want to cd, it helps for the computer to know

which folder you wish to go to Most commands have meaningful defaults, e.g.

cd without arguments will take you to your home directory

Page 17: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

17

Moving up e.g.

[alice@sunshine Desktop]$ pwd [alice@sunshine Desktop]$ /home/alice/Desktop [alice@sunshine Desktop]$ cd .. [alice@sunshine ~]$ pwd [alice@sunshine Desktop]$ /home/alice

.. Represents folder just above current folder

. Represents current folder

Used shortly

Page 18: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

18

Listing folder contents ls

[alice@sunshine ~]$ ls Desktop Documents Downloads hello.txt

Music Pictures Public Templates Videos

To distinguish folders from files [alice@sunshine ~]$ ls -F Desktop/ Documents/ Downloads/ hello.txt Music/

Pictures/ Public/ Templates/ Videos/ Folders marked by trailing /

Page 19: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

19

Commands, options, arguments Options

Indication to the command to behave in a certain way

Modify default behavior of the command e.g.

ls vs ls –F Show folders in a certain way

Options are also called flags, or switches Start with a –

No space between – and flag Usually one letter (e.g. –F)

But can be full words (e.g. -debug)

Page 20: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

20

Commands, options, arguments Options can be combined, e.g.

ls –f –l For simplicity, single letter options may be written

together, e.g. ls –fl

Most commands have many, many options, e.g. ls

-aAbcCdeEfFghHilLmnopqrRstuvVx1

Some option combinations are very popular, e.g. ls –al (shown on next slide)

-a: also show hidden files -l: long listing (show details)

Page 21: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

21

Commands, options, arguments[alice@sunshine share]$ cd /home/shared/[alice@sunshine shared]$ ls -altotal 28drwxr-xr-x. 6 root root 4096 Jan 28 19:10 .

drwxr-xr-x. 8 root root 4096 Jan 28 19:06 ..

drwxr-xr-x. 2 root accounting_grp 4096 Jan 28 19:07 accounting

drwxr-xr-x. 2 root engineering_grp 4096 Jan 28 19:06 engineering

drwxr-xr-x. 2 root marketing_grp 4096 Jan 28 19:07 marketing

-rw-r--r--. 1 root root 22 Jan 28 19:10 README

drwxr-xr-x. 2 root sales_grp 4096 Jan 28 19:06 sales

Page 22: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

22

Command autocomplete Tab key

Will complete commands and arguments to the extent possible

Try typing cd ls –al p<TAB>

If multiple options Auto-complete to the extent possible Double <TAB> displays available options

Page 23: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

23

Shell expansions GUI is convenient

But CLI has its own tricks Shell expansions (wildcards) simplify

command entry 3 wildcards

? Matches any zero or one characters

re?d matches red, reed and read but not reads

* Matches any zero or more characters

re* matches red, reed, read and reads

[x..y]

Matches a range of letters or numbers

re[a,e]d matches reed and read but not red

Page 24: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

24

Shell expansion examples [alice@sunshine Expansion]$ lsgoodbye.doc heap.txt helicopter.txt hello.doc hello.txt help.txt

[alice@sunshine Expansion]$ ls *.docgoodbye.doc hello.doc

Only .doc files shown [alice@sunshine Expansion]$ ls he?p.txtheap.txt help.txt

Page 25: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

25

File management mkdir

Creates directories

[alice@sunshine work]$ mkdir new_directory[alice@sunshine work]$ ls -aF./ ../ new_directory/

rmdir Removes directories

[alice@sunshine work]$ rmdir new_directory/[alice@sunshine work]$ ls -aF./ ../

Page 26: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

26

Copying and moving files General syntax

<cmd> <source> <target> Copy

cp [alice@sunshine work]$ cp hello.txt hello_world.txt [alice@sunshine work]$ ls -aF ./ ../ hello.txt hello_world.txt

Move mv

[alice@sunshine work]$ mv hello_world.txt HELLOWORLD.TXT

[alice@sunshine work]$ ls -aF ./ ../ hello.txt HELLOWORLD.TXT

Page 27: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

27

Recursion If folder contains folders and files and folders

within those folders cp only operates at the top level files

mv is always recursive Recursion causes copies to be made within folders Useful to copy directories e.g,

[alice@sunshine alice]$ ls -F Desktop/ Documents/ Music/ Pictures/ Public/ Videos/ [alice@sunshine alice]$ cp -r Desktop/ Desktop-copy [alice@sunshine alice]$ ls -F Desktop/ Desktop-copy/ Documents/ Music/ Pictures/

Public/ Videos/

Page 28: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

28

Removing (deleting) files and folders Remove command

rm

[alice@sunshine ~]$ cd ~/Desktop-moved/[alice@sunshine Desktop-moved]$ ls -aF./ ../ notes.txt readme sample_file1.mp3[alice@sunshine Desktop-moved]$ rm notes.txt [alice@sunshine Desktop-moved]$ ls -aF./ ../ readme sample_file1.mp3

Page 29: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

29

-i option cp, mv and rm are invasive commands

No recovery possible -i option

Adds interactivity Warning appears if the operation will delete an

existing file e.g.

[alice@sunshine Desktop-moved]$ rm -i readme rm: remove regular file `readme'? n[alice@sunshine Desktop-moved]$ cp -i sample_file1.mp3 readme cp: overwrite `readme'? n

Page 30: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

30

Removing folders rmdir works with empty folders rm –r <target> to delete folders with content

[alice@sunshine alice]$ ls -FDesktop/ Desktop-moved/ Documents/ Music/ Pictures/ Public/ Videos/[alice@sunshine alice]$ rm -r Desktop-moved/[alice@sunshine alice]$ ls -FDesktop/ Documents/ Music/ Pictures/ Public/ Videos/

Warning: Probably most lethal command in your arsenal

rm –r / ?

Page 31: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

31

Viewing files Most system administration files are text files less <filename>, e.g.

[alice@sunshine shared]$ less /usr/share/doc/openssl-1.0.0/FAQ View file contents one screen at a time Includes powerful search features

/word Search towards the end of the file for the first occurrence of the word

?word Search towards the beginning of the file for the word

Search can be repeated n

search for the next occurrence of the word N

Search for the previous occurrence of the word

Page 32: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

32

Keyboard shortcuts in modern use Many of these keyboard shortcuts have

carried over to modern software Software developers, particularly those using Unix

systems use these shortcuts all the time E.g. Gmail

/ Puts cursor in search box

n Next message

? Displays available keyboard shortcuts

Page 33: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

33

Viewing portions of files Sometimes quick view of files is useful

e.g. top of file to see if it is the file you need head

Or, bottom of file to see new log entries Useful when editing software configuration tail

[alice@sunshine shared]$ head /etc/passwdroot:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologin… [7 more lines]

Page 34: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

34

Viewing portions of files [alice@sunshine shared]$ tail /etc/group

sales_grp:x:504:engineering_grp:x:505:… [8 more lines]

Default output has 10 lines -n option specifies number of lines

[alice@sunshine shared]$ tail -n5 /etc/groupsales_grp:x:504:engineering_grp:x:505:marketing_grp:x:506:eric:x:507:accounting_grp:x:508:

Page 35: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

35

Searching for files find e.g.

[alice@sunshine ~]$ find / -name httpd.conf/etc/httpd/conf/httpd.conf

Takes two arguments First argument

Directory to search in Second argument

File to look for Wildcards can be used (?, *)

Page 36: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

36

Find command Slightly unusual compared to other commands

Also extremely powerful and versatile

Second argument is called an expression Many operators defined

E.g. Find empty files owned by alice[alice@sunshine ~]$ find /home -user alice -empty/home/alice/.bashrc

Page 37: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

37

Access control Files need protection

Confidentiality Also, safety

End users should not be able to delete server configuration files by accident

Two mechanisms available File permissions

Very traditional Universally agreed and standardized

Access control lists (ACLs) Fine grained Relatively new and limited tool support

Page 38: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

38

Viewing file permissions (ls –al output)drwxr-xr-x. 2 root marketing_grp 4096 Jan 28 19:07 marketing

-rw-r--r--. 1 root root 22 Jan 28 19:10 README

Col 1 2 3 4 5 6 7

Column

Description Example

1 File/ directory permissions drwxr-xr-x

2 Number of file system “hard” links 2

3 File/ directory user ownership root

4 File/ directory group ownership marketing_grp

5 File/ directory size (in bytes) 4096

6 Modification time stamp Jan 28 19:07

7 File/ directory name marketing

Page 39: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

39

File permissions in column 1 (ls –al) First column in ls –al output has 10 characters,

e.g. drwxr-xr-x

Actually two sets of information

First character File type

Remaining 9 characters File permissions

Page 40: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

40

File type

Symbol Type

d Directory

- Regular file

b Block/ special file

c Character/ special file

l Symbolic link

p Named pipe

s Socket

Page 41: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

41

Permissions 9 characters

3 sets of 3 characters each e.g.

File owner First 3 characters

File owner group Second set of 3 characters

Everybody else (world) Last set of 3 characters

r w x r - x r - -

Owner Group World

Page 42: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

42

Permissions (contd.) r

Indicates permission to read file (using less, head, tail etc)

w Indicates permission to edit file (using vi or other

editors) x

Indicates permission to execute file (commands) e.g.

r w x r – x r - - Owner can read, write and execute file Group can read and execute file (but not edit) Everybody else can only read the file

Page 43: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

43

Permissions (Contd.) Execute permission for a user is specified by the

third character x indicates execute permission is available - indicates user/ group/ world cannot execute the file

Other values are possible for this position s (setuid/ setgid)

File runs with permission of owner/ group, not user executing the file

Often used by developers to simplify testing Security hazard

T (sticky bit) Users may write, but cannot move or delete files in this

directory

Page 44: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

44

Octal notation Many administrators prefer to use a shorthand to

represent file permissions Supported by most commands

Permissions interpreted as a 3-bit binary number Read permission = 4 Write permission = 2 Execute permission = 1

Permissions add up 5 = 4 + 1 = Read and execute permission

Equivalent to r-x

r w x

4 2 1

Page 45: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

45

Octal notation examples 755

Owner Read, write, execute (4 + 2 + 1)

Group Read, execute (4 + 1)

World Read, execute (4 + 1)

644 664 660 777

Page 46: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

46

Changing permissions What if you want to add or remove

permissions E.g. Group does not have write permissions in

Engineering directory Say we want to allow group members write

permissions on the directory

chmod The chmod command can update permissions on

files and folders Generally requires super user (root) privileges

Owner can also change permissions

Page 47: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

47

Gaining super-user privileges su

The su command confers super-user privileges[alice@sunshine shared]$ su -Password: EnterTheRootPassword[root@sunshine ~]#

Note the change in prompt $ → #

# indicates super-user privileges System assumes you know what you are doing

Minimal interactivity and confirmations

Be very, very careful at # prompt

Page 48: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

48

Before chmod[root@sunshine ~]# cd /home/shared[root@sunshine shared]# ls -laFtotal 28drwxr-xr-x. 6 root root 4096 Jan 28 19:10 ./

drwxr-xr-x. 8 root root 4096 Jan 28 19:06 ../

drwxr-xr-x. 2 root accounting_grp 4096 Jan 28 19:07 accounting/

drwxr-xr-x. 2 root engineering_grp 4096 Jan 28 19:06 engineering/

drwxr-xr-x. 2 root marketing_grp 4096 Jan 28 19:07 marketing/

-rw-r--r--. 1 root root 22 Jan 28 19:10 README

drwxr-xr-x. 2 root sales_grp 4096 Jan 28 19:06 sales/

Page 49: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

49

After chmod[root@sunshine shared]# chmod 775 engineering[root@sunshine shared]# ls -laFtotal 28drwxr-xr-x. 6 root root 4096 Jan 28 19:10 ./

drwxr-xr-x. 8 root root 4096 Jan 28 19:06 ../

drwxr-xr-x. 2 root accounting_grp 4096 Jan 28 19:07 accounting/

drwxrwxr-x. 2 root engineering_grp 4096 Jan 28 19:06 engineering/

drwxr-xr-x. 2 root marketing_grp 4096 Jan 28 19:07 marketing/

-rw-r--r--. 1 root root 22 Jan 28 19:10 README

drwxr-xr-x. 2 root sales_grp 4096 Jan 28 19:06 sales/

Page 50: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

50

Access control lists Allow fine-grained application of permissions

getfacl setfacl

[root@sunshine shared]# getfacl README# file: README# owner: root# group: rootuser::rw-user:alice:rw-user:bob:rw-group::---group:devs:r--mask::rw-other::---

Page 51: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

51

File ownership chown

Change ownership chgrp

Change group

Example on next slide

Page 52: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

52

chown and chgrp example[root@sunshine shared]# cd /home/shared[root@sunshine shared]# chown dave README [root@sunshine shared]# chgrp sales_grp README [root@sunshine shared]# ls -laFtotal 28[…]drwxrwxr-x. 2 root engineering_grp 4096 Jan 28 19:06 engineering/

drwxr-xr-x. 2 root marketing_grp 4096 Jan 28 19:07 marketing/

-rw-r--r--. 1 dave sales_grp 22 Jan 28 19:10 README

drwxr-xr-x. 2 root sales_grp 4096 Jan 28 19:06 sales/

Page 53: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

53

Editing files vi

Standard editor on all Unix systems Other editors may or may not be present Two modes

Command mode Not present in editors such as Notepad, Word etc User input interpreted as commands, not text input

Input mode Command mode creates learning curve

vim vi improved Adds colors, syntax recognition etc

Page 54: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

54

vi modes On startup, vi is in command mode

a, i, A, I, o, O bring vi into input mode Escape key returns vi to command mode

Page 55: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

55

vimtutor To learn the meanings of a, A, i, I, o, O and the

various vi commands, vim has a very user-friendly tutorial called vimtutor

Every aspiring system administrator should complete vimtutor until they are very familiar with the important vi/ vim commands

To start vimtutor, use the command vimtutor

Page 56: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

56

vimtutor

Page 57: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

57

Software installation and updates Linux/ Unix software is often called a package

Refers to all files of the application bundled together as one file

Comparable to .iso files used in Windows software

Software is managed by applications called package managers, e.g. apt (Debian), rpm (Redhat), pkgutil (Solaris) etc Our version (CentOS) uses yum

YellowDog Updater, Modified

Open source software is available online Repositories

Page 58: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

58

Software search yum list

yum search <software> e.g,

[root@sunshine ~]# yum search games

Page 59: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

59

Software update yum update

Updates all software on the system

Trusts that developers have done a good job

Updates do not break existing applications

Page 60: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

60

Software installation yum install <software>, e.g.

[root@sunshine ~]# yum install gnome-gamesLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.gigenet.com * extras: mirrors.gigenet.com * updates: centos.mirror.choopa.netSetting up Install ProcessResolving Dependencies…

Page 61: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

61

User account management

Page 62: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

62

Adding users

Page 63: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

63

Managing groups

Page 64: Chapter 3 System Administration - 2. Overview  The core components of a modern operating system  How to use the command line interface (CLI)  Basic

64

Summary Operating system structure Essential system administration

Prompt File operations Unix command structure Wildcards File navigation Viewing files File permissions Super-user privileges Editing files Managing users and groups