Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Linux+ Certification Bible.pdf
Скачиваний:
46
Добавлен:
15.03.2015
Размер:
3.78 Mб
Скачать

318 Part IV Administration

Summary

This chapter explains many of the basics of administering a Linux system. This task is comprised of three areas:

Users and Groups

Add, modify, and delete users

Add, modify, and delete groups

Navigation and Management

Create, copy, move and delete files

Create and remove directories

Navigate the existing file system

Controlling Access

Control user and group ownership of a file or directory

Change user and group ownership of a file

Change available file systems and devices

Chapter 9 Study Guide 319

STUDY GUIDE

The Study Guide section provides you with the opportunity to test your knowledge about the Linux+ exam objectives that are covered in this chapter. The Assessment Questions provide practice for the real exam, and the Scenarios provide practice with real situations. If you get any questions wrong, use the answers to determine the part of the chapter that you should review before continuing.

Assessment Questions

1.What command can you use to add the user name john for Johnny Jones?

A.adduser john

B.adduser John

C.useradd john

D.useradd John

2.Which command can you use to add the user name contractor that is disabled on the December 25, 2005?

A.adduser contractor -d 2005-12-25

B.adduser -e 2005-12-25 contractor

C adduser contractor -e 2005-12-25

D.adduser -d 2005-12-25 contractor

3.What command can you use to change user information for the finger command?

A.chmod

B.chgrp

C.chfn

D chsh

320 Chapter 9 Study Guide

4.Which command will delete a user account, the user’s home directory — including the user’s files — and mail spool?

A.userdel -d <user name>

B.userdel -h <user name>

C.userdel -d /home/username <user name>

D.userdel -r <user name>

5.What files are modified when adding a group to a Linux system?

A./sbin/group and /sbin/gshadow

B./etc/group and /etc/gshadow

C./var/group and /var/gshadow

D./proc/group and /proc/gshadow

6.What command is used to delete a group from a Linux system?

A.groupdel

B.groupmod

C.delgroup

D.grouprem

7.What command will display the directory path that is currently in use?

A.dir

B.shell

C.path

D.pwd

8.Which command will move a user from his or her home directory to the /etc/X11 directory?

A.ls /etc/X11

B.cd etc/X11

C.cd /etc/X11

D.ls -d /etc/X11

Chapter 9 Study Guide 321

9.Which command will list all the files and sub-directories in a directory and include the access rights?

A.ls -a

B.ls -n

C.ls -l

D.ls -i

10.Which command line will move the file named myfile from the home directory of user john to the /tmp directory?

A.[john@dhcppc1 /]$ cp myfile /tmp/

B.[bob@dhcppc1 bob]$ cp /home/john/myfile /tmp/

C.[john@dhcppc1 john]$ cp /home/john/myfile /tmp/

D.[john@dhcppc1 john]$ cp /john/myfile /tmp/

11.What is the correct format for the move command?

A.mv <file name> [options] [source] [destination]

B.mv [options] [source] [destination]

C.mv [options] [source] [destination] <file name>

D.mv [source] [destination] <filename>

12.What command may be used to remove a file interactively?

A.rm -d <file name>

B.rm -i <file name>

C.rm -f <file name>

D.rm -a <file name>

13.Which character allows the execute-only permission if the file is a directory when using the chmod command?

A.r

B.w

C.x

D.X

322 Chapter 9 Study Guide

14.Which command will display confirmation of the change of ownership of a file from user to user2?

A.chown --verbose user2 /tmp/newfile

B.chown --v user2 /tmp/newfile

C.chgrp --verbose user2 /tmp/newfile

D.chown -f user2 /tmp/newfile

15.Which command is used to change only the group ownership of a file?

A.chmod

B.chown

C.chgrp

D.grpch

16.Which command won’t mount the file system /mnt/win_c2?

A.mount /mnt/win_c2

B.mount -f /mnt/win_c2

C.mount -v /mnt/win_c2

D.mount -w /mnt/win_c2

17.Which file system is most likely to require the -t option to be mounted in Linux?

A.vfat

B.msdos

C.iso9660

D.smbfs

18.Which command would un-mount a diskette and provide verification of the dismount?

A.umount -l /mnt/floppy

B.unmount -v /mnt/floppy

C.umount -v /mnt/floppy

D.umount -V /mnt/floppy

Соседние файлы в предмете Операционные системы