hello quizlet
Home
Subjects
Expert solutions
Create
Study sets, textbooks, questions
Log in
Sign up
Upgrade to remove ads
Only $35.99/year
ITC 471 Linux Admin Midterm (Ch. 1-4)
Flashcards
Learn
Test
Match
Flashcards
Learn
Test
Match
Terms in this set (40)
Which line should every Bash shell script start with?
B. shebang
What is the purpose of the exit 0 command that can be used at the end of a script?
A. Exit 0 is optional, to inform the parent shell that the script code was executed successfully
How do you stop a script to allow a user to provide input?
C. read
Which line stores the value of the first argument that was provided when starting a script in the variable NAME?
D. NAME=$1
What is the best way to distinguish between different arguments that have been passed into a shell script?
D. $@
What is used to close an if loop?
D. fi
What is missing in the following script at the position of the dots?
C. elif
What is missing in the following script at the position of the dots? (2)
B. do
Which command is used to send a message with the subject "error" to the user root if something didn't work out in a script?
D. mail -s error root < .
In a case statement, it is a good idea to include a line that applies to all other situations. Which of the following would do that?
A. *)
Which of the following commands enables you to check the current status of the crond service?
B. systemctl status crond
Which of the following would run a cron task Sunday at 11am?
C. 0 11
7
Which of the following launches a job every five minutes from Monday through Friday?
A.
/5
1-5
How do you create a cron job for a specific user?
A. Log in as that user and type crontab -e to open the cron editor AND D. As root, type crontab -u username -e.
Which directory is mainly used by cron files that are installed automatically through RPM?
B. /etc/cron.d
Which of the following is not a recommended way to specify jobs that should be executed with cron?
A. Modify /etc/crontab
Which service takes care of executing cron jobs in /etc/cron.hourly, cron.daily, cron.weekly, and cron.monthly?
D. anacron
Which of the statements aboutr cron security is true?
D. If the cron.allow file exists, a user must be listed in it to be able to schedule jobs through cron.
After entering commands in the at shell, which command enables you to close the at shell?
B. Ctrl-D
Which command enables you to see current at jobs scheduled for execution?
C. atq
Which of the following is not generally considered a type of process? (Choose two.)
B. A cron job AND D. A thread
Which of the following can be used to move a job to the background?
B. Press Ctrl-Z and then type bg
Which key combination enables you to cancel a current interactive shell job?
A. Ctrl-C
Which of the following statements are true about threads? (Choose two.)
A. Threads cannot be managed individually by an administrator AND B. Multithreaded processes can make the working of processes more efficient.
Which of the following commands is most appropriate if you're looking for detailed information about the command and how it was started?
A. ps ef
Of the following nice values, which will increase the priority of the selected process?
C. -19
Which of the following shows correct syntax to change the priority for the current process with PID 1234?
C. renice 5 -p 1234
Which of the following commands cannot be used to send signals to processes?
B. mkill
Which of the following commands would you use from top to change the priority of a process?
A. r
Which of the following commands will set the current performance profile to powersave?
B. tuned-adm profile powersave
Which command enables you to find all files on a system that are owned by user linda?
A. find / -user linda
Which command does not set group ownership to the group sales for the file myfile?
C. chgrp myfile sales
A user needs to work in a session where all new files that he creates will be group-owned by the group sales, until the session is closed. Which command would do that?
C. newgrp sales
Which command would be used to allow read and write permissions to the user and group owners and no permissions at all to anyone else?
C. chmod 660 filename
Which command enables you to set the SGID permission on a directory?
C. chmod g+s /dir
You are trying to use the setfacl command to set ACLs on the directory /data, but you are getting an "operation not supported" message. Which of the following is the most likely explanation?
D. The file system lacks ACL support.
Which command grants rw permissions for the group sales to all new files that will be created in the /data directory and all of its sub directories?
B. setfacl -m d:g:sales:rwx /data
Which command enables you to make sure that others have no access to any new files that will be created in the /data directory, assuming that you want others to have read permissions on all other files?
A. setfacl -m d:o::- /data
Which of the following umask settings meets the following requirements: -Grants all permissions to the owner of the file. -Grants read permissions to the group owner of the file. -Grants no permissions to others.
C. 027
Which command enables you to check all attributes that are currently set on myfile.
C. lsattr myfile
Students also viewed
Chapter 9: Expressive Human and Command Languages
12 terms
Chapter 11: Communication & Collaboration
11 terms
Chapters 12 and 14: Advancing the User Experience…
30 terms
Server Admin Chapter 8 Review
41 terms
Verified questions
chemistry
KNO3, KClO3, KCl and NaCl are recrystallized as follows: Step 1. A saturated aqueous solution of the compound is prepared at $50 ^ { \circ } \mathrm { C }$ Step 2. The mixture is filtered to remove undissolved compound. Step 3. The filtrate is cooled to $0 ^ { \circ } \mathrm { C }$. Step 4. The crystals that form are filtered, dried, and weighed. (a) Which compound has the highest percent recovery and which the lowest? (b) Starting with 100. g of each compound, how many grains of each can be recovered?
chemistry
For each of the following *unbalanced* equations, indicate how many *moles* of the first product are produced if $0.625{~mol}$ of the *second product* forms. State clearly the mole ratio used for each conversion. c. $\text{CH}_3\text{CH}_2\text{OH}(l) + \text{O}_2(g) \rightarrow \text{CH}_3\text{CHO}(aq) + \text{H}_2\text{O}(l)$
physics
In Fig. $24.38 a$, we move an electron from an infinite distance to a point at distance $R=8.00 \mathrm{~cm}$ from a tiny charged ball. The move requires work $W=2.16 \times 10^{-13} \mathrm{~J}$ by us. (a) What is the charge $Q$ on the ball? In Fig. $24.38 b$, the ball has been sliced up and the slices spread out so that an equal amount of charge is at the hour positions on a circular clock face of radius $R=8.00 \mathrm{~cm}$. Now the electron is brought from an infinite distance to the center of the circle. (b) With that addition of the electron to the system of 12 charged particles, what is the change in the electric potential energy of the system?
environmental science
How can merging paleobiology with conservation biology be used to guide the future of terrestrial ecosystems?
Recommended textbook solutions
Information Technology Project Management: Providing Measurable Organizational Value
5th Edition
•
ISBN: 9781118898208
Jack T. Marchewka
346 solutions
Fundamentals of Database Systems
7th Edition
•
ISBN: 9780133970777
(1 more)
Ramez Elmasri, Shamkant B. Navathe
687 solutions
Introduction to Algorithms
3rd Edition
•
ISBN: 9780262033848
(2 more)
Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
726 solutions
Service Management: Operations, Strategy, and Information Technology
7th Edition
•
ISBN: 9780077475864
James Fitzsimmons, Mona Fitzsimmons
103 solutions
Other Quizlet sets
12.3: Life on the Home Front
22 terms
Effective Instructional Delivery
15 terms
Ch. 19 Lehninger biochem test bank
43 terms
Balance Review Quizlet
10 terms