OpieTaylor
Quiz von , erstellt am more than 1 year ago

Review questions for Chapter 2: Exploring the UNIX/Linux File Systems and File Security

874
1
0
OpieTaylor
Erstellt von OpieTaylor vor mehr als 9 Jahre
Schließen

Chapter 2 Review Questions

Frage 1 von 25

1

Your company is discussing plans to migrate desktop and laptop users to Linux. One concern raised by the users is whether Linux supports the use of CDs and DVDs for both work files and for listening to music. Which of the following is an appropriate answer?

Wähle eine der folgenden:

  • Linux only supports hard disk file systems, such as extended file system (ext) and UNIX file system, but users can copy music (MP3) files to the hard disk to play.

  • Linux can use the Reiser File System, which supports CD and DVD files of all types.

  • Linux supports both the UDF and iso9660 file systems for CD and DVD use.

  • Linux supports mounting CDs and DVDs, by using the /removable partition.

Erklärung

Frage 2 von 25

1

You receive a message that you’ve successfully backed up hda2 on your Linux system. What is hda2?

Wähle eine der folgenden:

  • the second disk in a two-disk system

  • the second partition on your main hard disk

  • the files on a CD

  • the subdirectory under the /root directory that houses the kernel

Erklärung

Frage 3 von 25

1

You have purchased a special monitor for your computer and the instructions tell you to make a minor modification to the inittab file. Where would you locate this file on a typical Linux system?

Wähle eine der folgenden:

  • /var

  • /fastboot

  • /home/users

  • /etc

Erklärung

Frage 4 von 25

1

You’re frantically trying to get ready for a meeting and want to access a file in your home directory, but you are currently working in a public directory open to all users. What command can you enter to instantly go to your home directory?

Wähle eine der folgenden:

  • cd

  • home

  • go

  • fetch

Erklärung

Frage 5 von 25

1

Your new colleague asks which partitions vendors recommend setting up on a Linux system. Which of the following lists partitions do you include in your response?

Wähle eine der folgenden:

  • swap, /, /var, /boot, /usr

  • /, /var, /boot, /usr, /home

Erklärung

Frage 6 von 25

1

You have mounted a remote network drive and now you want to unmount that drive. Which of the following commands do you use? (Choose the best answer.)

Wähle eine der folgenden:

  • bye

  • umont

  • driveoff

  • disconnect

Erklärung

Frage 7 von 25

1

When you connect a printer via a USB port on your Linux computer, which type of device special file is used to handle streams of data sent to and from the printer?

Wähle eine der folgenden:

  • character special file

  • block special file

  • root device file

  • port device file

Erklärung

Frage 8 von 25

1

Some of the users in your company create and delete so many files that they have problems with fragmented disks. Which of the following new features in the ext4 file system help to reduce fragmentation problems?

Wähle eine der folgenden:

  • hot swap

  • fragmonitor

  • smaller file sizes

  • extents

Erklärung

Frage 9 von 25

1

In UNIX and Linux systems, what source of extra memory space is used when working on tasks and files that exceed the RAM capacity on chips in the computer?

Wähle eine der folgenden:

  • register memory contained on the circuit board used to run the monitor

  • swap partition

  • /mem directory

  • memory subdirectory under the /users directory (/users/mem)

Erklärung

Frage 10 von 25

1

You are always scheduled for two or three meetings each day and need to keep an eye on the time. What PS1 variable parameter can you set in order to have your command prompt display the current time?

Wähle eine der folgenden:

  • \t

  • \v

  • /time

  • /date

Erklärung

Frage 11 von 25

1

You have been working in several directories for the past hour and right now you don’t remember which directory you’re in currently. What command can you use to show your current working directory?

Wähle eine der folgenden:

  • showme

  • where am i

  • pwd

  • dir -w

Erklärung

Frage 12 von 25

1

A member of your department has given you permissions to view the contents of the accounting directory under his home directory. The name of his home directory is bramirez. Which of the following commands should you use to display the contents of the accounting directory?

Wähle eine der folgenden:

  • dir accounting

  • ls ~/accounting

  • ls /home/bramirez/accounting

  • cd -l /bramirez/accounting

Erklärung

Frage 13 von 25

1

It’s late and you have been working all day to finish a report. Before you go home, you want to copy several files, including your report file. What copy command should you use to ensure that you don’t inadvertently copy an older report file over the newer report file you’ve been working on for the last four hours?

Wähle eine der folgenden:

  • cp -u

  • cp --warn

  • copy -w

  • copy --caution

Erklärung

Frage 14 von 25

1

Which of the following are file systems supported by UNIX and Linux operating systems?

Wähle eine oder mehr der folgenden:

  • NTFS

  • vfat

  • PICK

  • ufs

  • ext

Erklärung

Frage 15 von 25

1

You are helping a friend who is new to Linux. You want to determine which entries under her home directory are directories instead of files. When you perform a long listing of the home directory’s contents, what do you use to distinguish a directory from a file?

Wähle eine der folgenden:

  • The very first character in the line for an entry will be either "~" for a directory or "$" for an ordinary file.

  • The very last word in the line for an entry will be "file" or "directory."

  • The last character appended to the entry's name will be either "1" for an ordinary file or "2" for a directory.

  • The very first character in the line for an entry will be "d" for directory or "-" for an ordinary file.

Erklärung

Frage 16 von 25

1

Your boss is planning to do some house cleaning by deleting several old files. However, she mentions that she doesn’t want to delete an important file inadvertently. What command can she use so that she is prompted to make sure she wants to delete a particular file?

Wähle eine der folgenden:

  • del ?

  • cp -d

  • write -del -q

  • rm -i

Erklärung

Frage 17 von 25

1

You are curious about the error and system logs kept by your operating system. In what main directory under the root (/) would you most likely find these logs?

Wähle eine der folgenden:

  • /var

  • /sbin

  • /tmp

  • /sys

Erklärung

Frage 18 von 25

1

A friend of yours is trying to make more space on his hard disk drive and is considering deleting the /lib directory because he has heard it mostly contains games that he doesn’t use. What is your recommendation?

Wähle eine der folgenden:

  • Delete the /lib directory because it mainly contains old games anyway.

  • Before deleting the /lib directory, copy the config file to another directory, because this file is used to configure games and other software.

  • Delete the /mnt directory instead, because it contains backups of changed maintenance and log files.

  • Keep the /lib directory because it contains critical files important to the proper functionality of the core operating system.

Erklärung

Frage 19 von 25

1

Which of the following are permissions that can be granted to a file?

Wähle eine oder mehr der folgenden:

  • start

  • write

  • execute

  • manage

  • read

Erklärung

Frage 20 von 25

1

Which of the following commands enable(s) you to set permissions on a directory after you create it? (Choose the best answer.)

Wähle eine der folgenden:

  • mkdir -p

  • cpdir --permissions

  • chmod

  • catperm

Erklärung

Frage 21 von 25

1

You have created many notes to yourself that end in .txt. Which of the following commands enables you to list all of the .txt files in your home directory while you are in the Bash shell?

Wähle eine der folgenden:

  • dir ##.txt

  • ls *.txt

  • cp .txt -all

  • cat $.txt

Erklärung

Frage 22 von 25

1

Where is virtual memory located?

Wähle eine der folgenden:

  • Virtual memory is located/stored in the swap partition or partitions.

  • Nope.

Erklärung

Frage 23 von 25

1

When you see the permissions rwx--x--x associated with a file, what permissions are granted?

Wähle eine der folgenden:

  • User: Read, Write, Execute
    Groups & Others: Execute

  • Nope

Erklärung

Frage 24 von 25

1

Your boss wants to use the command to view hidden files and also wants to know how to find them among other files. What do you tell her?

Wähle eine der folgenden:

  • ls -a will show hidden files, which are identified by having a . in front of the name.

  • Nope.

Erklärung

Frage 25 von 25

1

You have many files that begin with the word “account” and that end with two digits to designate a year, such as account00, account 01, and so on. What is the command that enables you to view all of these files that start with account?

Wähle eine der folgenden:

  • ls account*

  • Nope.

Erklärung