module 4 quiz
docx
keyboard_arrow_up
School
Wake Tech *
*We aren’t endorsed by this school
Course
120
Subject
Information Systems
Date
Apr 3, 2024
Type
docx
Pages
2
Uploaded by ColonelFlower887
Module 4 Quiz
1. Jamie has created a hard link to another file within the same directory. Which of the following commands can he use to verify that the hard link was created correctly? (Choose all that apply.)
a.
ls -al
b.
ls -l
c.
ls -i
d.
ls -il
2. Which of the following are valid permissions for a directory where the command chmod 1777 has been used to set the permissions on it?
3. Which of the following umask settings will result in new files receiving the default permissions -rw-------?
a.
0177
b.
0688
c.
0188
d.
0600
4. What is the complete path and filename for the database that is used by the locate and mlocate commands?
a.
/etc/mlocate.db
b.
/etc/locate/mlocate.db
c.
/var/lib/locate/locate.db
d.
/var/lib/mlocate/mlocate.db
5. Which of the following permissions would show for a symbolic link when displayed with the ls -l command?
a.
lrwxrwxrwx
b.
srw-r--r--
c.
srwxrwxrwx
d.
-rw-r--r--
6. Which of the following commands will display all files and directories within the /var/log directory or its subdirectories which are owned by the root user? (Choose two.)
a.
find -uid root -print /var/log
b.
find /var/log -user root
c.
find -path /var/log -user root
d.
find -user root -print /var/log
7. 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.conf
b.
/etc/locatedb.conf
c.
/etc/locate.d/updatedb.conf
d.
/etc/updatedb.conf
8. 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.
touch file.txt
b.
update file.txt
c.
updatets file.txt
d.
stamp file.tx
Answers:
1. c.
ls -i
d.
ls -il
2. b. drwxrwxrwt
3. a. 0177
4. d. /var/lib/mlocate/mlocate.db
5. a. lrwxrwxrwx
6. b. find /var/log -user root
7. d. /etc/updatedb.conf
8. a. touch file.txt
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help