ITN 170 Exam 2 Study Guide

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following group is used for a regular file? a. d b. w c. - d. l

-

After typing the command umask 731, the permissions on all subsequently created files and directories will be effected. In this case, what will be the permissions on all new files? a. rw-rw-rw- b. rwxrw-r-- c. ---r--rw- d. ----wx--x

---r--rw-

The command chmod 317 file1 would produce which of the following lines in the ls command? a. --w-r--rwx 1 user1 root 0 Apr 29 15:40 file1 b. --wx--xrwx 1 user1 root 0 Apr 29 15:40 file1 c. -rwxrw-r-x 1 user1 root 0 Apr 29 15:40 file1 d. --w-rw-r-e 1 user1 root 0 Apr 29 15:40 file1

--wx--xrwx 1 user1 root 0 Apr 29 15:40 file1

Which parameter should you use to list the empty devices with the lsblk command? a. -e b. -b c. -l d. -a

-a

Which parameter should you use to list the device size in bytes with the lsblk command? a. -b b. -l c. -a d. -e

-b

Which parameter do you use with the setfacl command to define a default ACL? a. -l b. -a c. -g d. -d

-d

Which parameter of the lsblk command will list only the main devices, not the slave devices? a. -e b. -d c. -a d. -m e. -b

-d

Which parameter of the df command should you use to check if a partition has been mounted? a. -d b. -a c. -l d. -h e. -c

-h

To copy a directory and the files contained in it to another directory, which parameter should be used with the cp command? a. -x b. -r c. -f d. -a

-r

Which parameter should be used with the rm command to remove a directory? a. -r b. -x c. -a d. -f

-r

Which parameter is used to create a symbolic link rather than a hard link with the ln command? a. -s b. -f c. -x d. -a e. -r

-s

Which of the following two directories contain files that are static and cannot be changed by a user? [Choose two.] a. /etc b. /home c. /var d. /boot

/etc /boot

The _______ file lists the partitions that will be detected at the boot time. It also defines which filesystem is mounted as the root partition (/). a. /etc/hosts b. /etc/fstab c. /etc/swap d. /etc/ssh/ssh_config

/etc/fstab

Lynn runs the locate command and the results include many files from a directory that she doesn't want to include in her search. Which of the following files could Lynn modify so that the locate command no longer includes those results? a. /etc/locate.d/updatedb.conf b. /etc/locate.conf c. /etc/updatedb.conf d. /etc/locatedb.conf

/etc/updatedb.conf

To mount a CD-ROM, in which directory should you create a directory? a. /swap b. /mount c. /etc d. /media

/media

You can use view the ______ file to view the hard drive details. a. /etc/hosts b. /proc/partitions c. /etc/fstab d. /proc/mounts

/proc/partitions

Which of the following directories are unshareable? [Choose all that apply.] a. /var/log b. /etc c. /home d. /var e. /proc

/var/log /proc

Which of the following umask settings will result in new files receiving the default permissions -rw-------? a. 0177 b. 0600 c. 0188 d. 0688

0177

What is the number of MBR partitions contained in a hard drive? a. 3 b. 2 c. 4 d. 1

1

What is the octal value of execute permission? a. 2 b. 1 c. 4 d. 0

1

What is the octal value of execute permission? a. 4 b. 2 c. 0 d. 1

1

What is the default value of SGID? a. 6 b. 3 c. 4 d. 2 e. 1

2

What is the default value of SUID? a. 4 b. 2 c. 1 d. 6 e. 3

4

What is the maximum number of primary and extended partitions can you define on a hard drive? a. 3 b. 4 c. 1 d. 2

4

What is the octal value of read permission? a. 1 b. 2 c. 4 d. 0

4

What is the octal value of SUID? a. 3000 b. 4000 c. 2000 d. 1000

4000

What is the octal value for the -rw-rw-rw- permission? a. 666 b. 555 c. 777 d. 444

666

What is the standard permission for files? a. 555 b. 666 c. 777 d. 444

666

If you create a file on which no one other than root has read, write, or execute permissions, which value should you use with the chmod command? a. 444 b. 400 c. 777 d. 700 e. 477

700

What is the numeric representation of the mode of a newly created directory?

777

What is the standard permission for directories? a. 444 b. 666 c. 777 d. 555

777

When using the gdisk command, what is the default GUID used? a. 9100 b. 8300 c. 7200 d. 9300

8300

You noticed a file in your home directory that has a + symbol appended to the mode. What does this indicate? a. Special permissions have been set on the file. b. The file has one or more files on the filesystem that are hard linked to it. c. The sticky bit directory permission has been set on the file, and will remain inactive as a result. d. Additional entries exist within the ACL of the file that can be viewed using the getfacl command.

Additional entries exist within the ACL of the file that can be viewed using the getfacl command

In which of the following ways can an access control list be configured? [Choose all that apply.] a. Per-user basis b. For users other than the ones in the group for a file c. Using an effective right mask d. Per group basis

All of the above

Which of the following special characters are used as wildcards? [Choose all that apply.] a. * b. ~ c. [] d. ?

All of the above

Which of the following sub-directories are part of the root directory? [Choose all that apply.] a. usr b. var c. home d. tmp e. boot

All of the above

Which of the following tasks can be performed using disk management tools in Linux? [Choose all that apply.] a. Monitor free and used space b. Specifying the type of filesystem on a partition c. Create partitions d. Remove partitions

All of the above

What was created to define a standard directory structure and common file location for Linux? a. FSH b. X.500 c. FHS d. root directory

FHS

A symbolic link is also known as a soft link and is depicted by an @ symbol appearing at the beginning of the filename when viewed using the ls -l command. True or False? a. True b. False

False

Only the root user can modify a file that has the immutable attribute set. True or False? a. True b. False

False

There is no real difference between the "S" and "s" special permissions when displayed using the ls -l command. One just means it is on a file, and the other that it is on a directory. True or False? a. True b. False

False

Which of the following does iso9660 identify? a. Filesystem b. Device c. Hard disk d. Mount point

Filesystem

Which type of link can only exist on the local system? a. Symbolic link b. Soft link c. Temp link d. Hard link

Hard link

Which type of link is another directory entry for the source file and carries those same properties, such as file permissions, of the source file? a. Hard link b. Temp link c. Symbolic link d. Soft link

Hard link

What does the mv command do? (Choose all that apply.) a. It makes a volume. b. It makes a directory. c. It moves a directory. d. It moves a file.

It moves a directory It moves a file

What must a user do to run cp or mv interactively and be asked whether to overwrite an existing file? a. There is no choice as the new file will overwrite the old one by default. b. Type interactive cp or interactive mv. c. Type cp -i or mv-i. d. Type cp -interactive or mv - interactive. e. Just type cp or mv as they run in interactive mode by default.

Just type cp or mv as they run in interactive mode by default

To which of the following can you apply the default ACL? a. Both to files and directories b. Only to directories c. Only to system files d. Only to files

Only to directories

The root user utilizes the chgrp command to give ownership of a file to another user. What must the root user do to regain ownership of the file? a. Run chgrp again listing the root user as the new owner. b. Nothing, because this is a one-way, one-time action. c. Have the new owner run chgrp, and list the root user as the new owner. d. Run chown and list the root user as the new owner.

Run chgrp again listing the root user as the new owner

When using the fdisk -l command, what type of device contains the boot partition? a. PATA b. SATA/SCSI c. IDE d. USB

SATA/SCSI

Which of the following is a separate partition that moves items from computer memory to its hard drive? a. Mount b. Home c. Swap d. Root

Swap

Which type of link is a pointer to the source file? a. Temp link b. Symbolic link c. Soft link d. Hard link

Symbolic link

Which of the following information is displayed using the lsblk command? [Choose all that apply.] a. The mount points if any available b. The total size of the partition c. The total size of the block d. Used and free space on the hard drive

The mount points if any available The total size of the partition The total size of the block

What would be the result of running the command chown :root file1.txt a. This would set the owner of file1.txt to root. b. This would set the group ownership of file1 to root. c. This would set the owner and group ownership of file1 to root. d. This would keep the current ownership of the file, and add root as a second owner of the file.

This would set the group ownership of file1 to root

Hard links need to reside on the same filesystem as the target, whereas symbolic links need not be on the same filesystem as the target. True or False? a. True b. False

True

How many partitions does GPT allow you to create on a disk? a. 4 b. Unlimited c. 5 d. 6

Unlimited

After typing the ls -F command, you see the following line in the output: -rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1 What does this mean? a. User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file. b. Members of the root group have read and write, user1 has read and execute, and all others have read permissions to the file. c. All users have read and write, members of the root group have read and execute, and user1 has read permissions to the file. d. User1 has read and write, all others have read and execute, and members of the root group have read permissions to the file.

User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file

Which command should you use to find the UID of a filesystem? a. mount b. ll c. umount d. blkid

blkid

When applied to a directory, the SGID special permission____________________. a. causes all new files created in the directory to have the same group membership as the directory and not the entity that created them b. cannot be used, because it is applied only to files c. allows users the ability to use more than two groups for files that they create within the directory d. causes users to have their permissions checked before they are allowed to access files in the directory

causes all new files created in the directory to have the same group membership as the directory and not the entity that created them

Which of the following command is used to navigate to the root directory? a. cd . b. cd .. c. cd / d. cd \

cd /

A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as the command _________. (Choose all that apply.) a. chmod u+x-r,g+r-x,o+w file1 b. chmod u=w,g=rw,o=rx file1 c. chmod u-r-w,g+r-w,o+r-x file1 d. chmod u=x,g=r,o=wx file1 e. chmod u+w,g+r-w,o+r-x file1 f. chmod u=rw,g=r,o=r file1

chmod u=x,g=r,o=wx file1

Which command will add the read, write, and execute permissions to everyone on a file named plab.txt? a. chmod o+rwx plab.txt b. chmod +rwx plab.txt c. chmod uo+rwx plab.txt d. chmod ugo+rwx plab.txt

chmod ugo+rwx plab.txt

Which commands can be used to change the group in a file permission? [Choose all that apply.] a. chusr b. chown c. chgrp d. chmod

chown chgrp

Which of the following commands will change the user ownership and group ownership of file1 to user1 and root, respectively? a. chown user1:root file1 b. chown user1 : root file1 c. This cannot be done because user and group ownership properties of a file must be modified separately. d. chown root:user1 file1 e. chown root : user1 file1

chown user1:root file1

The _______ command displays the information about the mounted filesystems. a. blkid b. ln c. umount d. df

df

The _______ utility is meant to list the disk space usage on filesystems. a. blkid b. fdisk c. umount d. df

df

Which command will allow you to find out the total space taken by each of the directories in a Linux system? a. ls -h --max-depth=1 b. df -h --max-depth=1 c. du -h --max-depth=1 d. fdisk -h --max-depth=1

du -h --max-depth=1

Which of the following directories are contained within the root directory? [Choose all that apply.] a. mount b. etc c. home d. boot e. lib32

etc home boot

What are the three standard Linux permissions? a. full control, read-execute, write b. read, write, modify c. execute, read, write d. read, write, examine

execute, read, write

Which command allows you to display the existing partitions on a disk? a. fdisk -l b. fdisk -o c. fdisk -m d. fdisk -k

fdisk -l

Which command works only when you are in the root directory? a. type b. whereis c. which d. find

find

Which utility can repair a damaged filesystem? a. lsscsi b. smartctl c. fsck d. fdisk

fsck

To remove the write permissions for a group, which two parameters should you use with the chmod command? a. g-w b. -gw c. g+w d. +gw

g-w

Which command do you need to use to verify the ACLs on a directory after they have been applied? a. getfacl b. setfacl c. ACL d. chmod

getfacl

You can verify the permissions on this file using the ________ command. [Choose all that apply.] a. acl b. getfacl c. ls -l d. setfacl

getfacl ls -l

When searching with the which command, most of the commands were found in the same directory. Which choices were in a different directory than the others? a. ls b. pwd c. cp d. mv e. halt

halt

The iso9660 filesystem is used on CD-ROMs. What filesystem is used if you convert a CD-ROM to a disk image ISO file? a. iso9600 b. iso9060 c. iso9660 d. iso9000

iso9660

Which command is used to create links? a. cp b. touch c. ls d. ln

ln

Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt a. ln bar.txt foo.txt b. ln foo.txt bar.txt c. ln -s bar.txt foo.txt d. ln -h foo.txt bar.txt

ln -s bar.txt foo.txt

Which of the following permissions would show for a symbolic link when displayed with the ls -l command? a. -rw-r--r-- b. srwxrwxrwx c. lrwxrwxrwx d. srw-r--r--

lrwxrwxrwx

Which command would you use to view the assigned SGID? a. ls -ld b. ls -l c. ls -ll d. ls -lm

ls -ld

The __________ utility is meant to list the SCSI devices on a system. a. lsscsi b. umount c. fdisk d. blkid e. df

lsscsi

Mindy wants to create a new subdirectory at ~/2019projects/projectx/projectplans to start storing the initial project plans for projectx. However, this is the first project she has worked on in 2019 and the 2019projects directory does not exist yet. Which of the following commands will create the higher level directories if they do not already exist? a. mkdir -r ~/2019projects/project/projectplans b. mkdir -p ~/2019projects/project/projectplans c. mkdir --all ~/2019projects/project/projectplans d. mkdir -v ~/2019projects/project/projectplans

mkdir -p ~/2019projects/project/projectplans

Which of the following command lists all the partitions and their mount points on a hard disk? a. mount b. umount c. du d. fdisk

mount

To view the current partitions mounted, which command should you use? a. mount -a b. mount -d c. mount -t d. mount -v

mount -v

Which command do you use to rename files and directories? a. cp b. mv c. rn d. rename

mv

Which of the following commands is used to delete a file? a. cp b. del c. mv d. rm

rm

Which of the following commands will delete a directory and all of the files contained within it? (Choose all that apply.) a. rm olddir b. rmdir olddir c. rm -rf olddir d. rmdir -rf olddir

rm -rf olddir

Which package should you use to verify if the ACL package is installed on the CentOS system? a. rpm b. apt-get c. yum d. cat

rpm

The default permissions given by the system prior to analyzing the umask are ___________for directories and __________ for files. a. rw-rw-rw- and rw-rw-rw- b. rw-rw-rw- and r--r--r-- c. rw-rw-rw- and rwxrwxrwx d. rwxrwxrwx and rw-rw-rw- e. rwxrw-rw- and rwx-rw-rw-

rwxrwxrwx and rw-rw-rw-

The which command _________________. a. can only be used to search for executables b. searches for a file in all directories starting from the root c. is not a valid Linux command d. searches for a file only in directories that are in the PATH variable

searches for a file only in directories that are in the PATH variable

Which command do you use to define an access ACL? a. getfacl b. chmod c. setfacl d. ACL

setfacl

The _________ utility is meant to print the drive information. a. smartctl b. df c. lsscsi d. umount e. fdisk

smartctl

What does the /var directory contain? a. various additional programs b. spools and log files c. temporary files d. files that are architecture-independent e. local variance devices

spools and log files

Which command displays values like when last accessed, modified, or changed for a specific file? a. stat b. at c. ls -l d. atq

stat

Which type of partition moves items from the computer memory to its hard drive? a. usr b. root c. tmp d. swap

swap

When you change the data in a file that is hard-linked to three others, __________. a. only the data in the file you modified is affected b. only the data in the file you modified and any hard linked files in the same directory are affected c. the data in the file you modified and the data in all hard linked files are modified because they have different inodes d. the data in the file you modified as well as the data in all hard-linked files are modified because they share the same data and all have the same inode and file size

the data in the file you modified as well as the data in all hard-linked files are modified because they share the same data and all have the same inode and file size

When you boot a Linux system, the _____ filesystem is mounted as part of the initialization process. a. the boot filesystem b. the swap filesystem c. the tmp filesystem d. the root (/) filesystem

the root (/) filesystem

Which of the following commands can be used to update the last modified timestamp on a file, or if the file specified does not exist will create the file? a. update file.txt b. updatets file.txt c. touch file.txt d. stamp file.txt

touch file.txt

Given the following output from the ls command, how many files are linked with file1?drwxr-xr-x 3 root root 4096 Apr 8 07:12 Desktop-rw-r--r-- 3 root root 282 Apr 29 22:06 file1-rw-r--r-- 1 root root 282 Apr 29 22:06 file2-rw-r--r-- 4 root root 282 Apr 29 22:06 file3-rw-r--r-- 2 root root 282 Apr 29 22:06 file4-rw-r--r-- 1 root root 282 Apr 29 22:06 file5-rw-r--r-- 1 user1 sys 282 Apr 29 22:06 file6 a. one b. two c. three d. four

two


संबंधित स्टडी सेट्स

Maternity and Women's Health Nursing - Pregnancy, Uncomplicated

View Set

Lipids: Triglycerides, Phospholipids, and Sterols - Fundamentals of Nut Lecture 6 & 7

View Set

PrepU Chapter 18: Nursing Management of the Newborn

View Set

All socio quests, Socio- emotions quiz, Socio Ch 13 race and ethnicity quiz

View Set

Topic Assignment 1B (missed one)

View Set

The Research Process—Using and Citing Sources

View Set