Linux 1 Chapter 4 Questions

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

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

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 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.

Which of the following are valid permissions for a directory where the command chmod 1777 has been used to set the permissions on it? a. drwxrwxrwt b. Srwxrwxrwx c. trwxrwxrwx d. drwxrwxrw-

drwxrwxrwt

Which of the following commands can be used to recursively search a directory tree for files that meet a certain criterion without using a database or premade index of files? a. locate b. find c. where d. search

find

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

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

Jim wants to rename a directory for a project that he has been working on. Which of the following commands can he use to perform that action? a. mv projectx projecty b. rename projectx projecty c. ren projectx projecty d. move projectx project

mv projectx projecty

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 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


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

17 Sustainable Development Goals

View Set

Chapter 4 - Imperial Wars and Colonial Protest

View Set

Chapter 4: Longevity Health and Function

View Set

Speaking and Listening: Effective Group Discussions

View Set

Care of Adult Exam 2 (Prep-U Cardiac disorders)

View Set

MICRO 5 Exam 3 Viral Replication

View Set

Triangle Congruence: ASA and AAS

View Set

Business Computer Information Systems Unit 3 Quiz 2

View Set

Texas Promulgated Contract Forms

View Set

Muscular System Quiz - Chapter 10

View Set