DCOM Complete Study Guide Test 2024.
DCOM Complete Study Guide Test 2024. The number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in? a) test $USERS = 5 b) test $USERS -a 5 c) test -f $USERS=5 d) test $USERS -eq 5 - correct answer d) test $USERS -eq 5 Given the following script: while [! -f /tmp/foo ]; do echo -n "." process_data /tmp/foo done Which of the following are true? (choose two) a) The screen will fill with dots b) /tmp/foo will be removed if it exists c) process_data will never be run d) If a file called /tmp/foo exists, process_data won't be run e) process_data will be called at most once - correct answer d) If a file called /tmp/foo exists, process_data won't be run e) process_data will be called at most once A conditional that lets you make multiple comparisons with a pattern is called: a) fanout b) if c) branch d) case e) test - correct answer d) case
Document information
- Uploaded on
- May 5, 2024
- Number of pages
- 9
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers