Question
question 5.Which command would you type to view the detailed contents of a directory, including file permssions? a. ls b. ld -p c. dir -a
question 5.Which command would you type to view the detailed contents of a directory, including file permssions?
a. | ls | |
b. | ld -p | |
c. | dir -a | |
d | . | ls -l |
QUESTION 7-Which directory holds most of the system configuration files in Unix?
a. | /root | |
b. | /bin | |
c. | /etc | |
d. | /var |
QUESTION 13
You asked your team to collect the serial numbers of all your equipment for insurance purposes. Unfortunately some members of the team visited the same rooms and you are certain that some of the lists they sent in contain the same serial numbers.
Assuming you have three text files of serial numbers named "serials-andy", "serials-mary", and "serials-pat", how would you remove all the duplicate serial numbers?
(You can verify your answer by creating three files with these names, puting some random numbers in them with some duplicates, and trying the commands)
a. | cat serials-* | sort | uniq | |
b. | sort serials* | uniq -d | |
c. | uniq serials-* | sort | |
d. | uniq serials-andy | uniq serials-mary | uniq serials-pat |
QUESTION 17
Traditional Unix permissions can be assigned two which three categories of users?
a .r - The root user u - Regular users x - Exclude everyone | ||
b .s - The system administrator r - Regular users w - The world, or everyone | ||
c .u - The user that owns the file g - A specific group of users o - Other users, or everyone. | ||
d .o - The owner of the file p - The public n - Nobody |
QUESTION 18
You have a file named Homework with the following permissions:
-rw-r--r-- 1 fsmith staff 12 Feb 20 14:08 Homework
Which command would you type to make sure that you were the only one with permission to view the contents of the file? (permissions should look like this when done)
-rw------- 1 fsmith staff 12 Feb 20 14:08 Homework
a. | chmod rwx Homework | |
b. | chmod go-r Homework | |
c. | chmod 777 Homework | |
d. | chmod r-* Homework |
QUESTION 19
You have finished your thesis, and want to set the permissions so that it is hard to accidentally delete or overwrite the file.
Normally, if you were to type "rm Thesis.txt", it would just delete it without asking. Or, if you moved a file with the same name into the same directory as your original Thesis.txt, it would overwrite it with the new version.
Which command would change the permissions for a file called Thesis.txt so that you are less likely to delete or overwrite it by accident?
a.chmod a+rwx Thesis.txt | ||
b. | chmod a-w Thesis.txt | |
c. | chmod a+w Thesis.txt | |
d. | chmod o-rwx Thesis.txt |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started