linkedin-skill-assessments-quizzes

Linux

Q1. To mount a drive by its ID, what command would you use first to retrieve it?

Q2. Linux file access control lists (ACLs) are ___.

Q3. When using iproute2, how do you show routing information for an IPv6 network?

Q4. What does this command string do?

find / -size +10M -exec ls -l {} ;

Q5. What would this locate command show?

locate --regexp '^/usr.*pixmaps.*jpg$'

Q6. Which command allows you to do packet analysis from the command line?

Q7. Which command will tell you how long a system has been running?

Q8. How would you describe PCP (Performance Co-Pilot)?

Q9. You want to resolve a long list of DNS names using dig. What should you do?

Q10. What would this command output?

ps -e --format uid,pid,ppid,%cpu,cmd

Q11. Which command in Bash executes the last line in the shell history that starts with ls?

Q12. The ssh-copy-id command copies ___ to the remote host.

Q13. What command is used to determine the amount of disk usage for a directory?

Q14. A backup drive was created using dd to make a bit-for-bit copy. When the drive is inserted into an iSCSI target before it is booted up, the data appears to be missing. What happened?

Q15. What is the key difference between a redirect (>) and piping to the tee command?

Q16. What does the /etc/nsswitch.conf file manage?

Q17. Assume the variable myNumber holds a string consisting of 10 digits. What will this command output?

echo \$myNumber | sed -e 's/^[[:digit:]][[:digit:]][[:digit:]]/(&)/g'

Q18. Packages can be downloaded but not installed with yum or dnf by specifying which option?

Q19. What character class is equal to this set?

[0-9]

Q20. When archiving files, which command will preserve all file attributes including ACLs and SELinux security context?

Q21. In a systemd-based OS, you can change the system hostname by editing /etc/hostname manually and then doing what?

Q22. What command would you use to resize an LVM volume group to include an additional physical volume?

Q23. When would this system cron job run its task?

0 1 * * *

Q25. You are managing an Apache web server on a system using SELinux. By default it cannot read personal webpages in users’ home directories. What SELinux boolean would you set to allow this?

Q26. Why doesn’t passwd -l keep a user from logging in via other methods?

Q27. In the Bash shell, what is the difference between piping into | and piping into |&?

Q28. Why is the passwd command able to modify the /etc/passwd file?

Q29. When a user deletes a file using the rm command, Linux will ___.

Q30. What is a major advantage of using Logical Volume Management (LVM)?

Q31. What is one major difference between brace expansion and globs?

Q32. To remove all ACLs from a directory , use setfacl with which options?

Q33. Which choice will not print “Hello World” in the terminal?

myVar = 5
[[ $myVar -lt 10 ]] && echo " Hello World"
myVar = 5
[[ $myVar -lt 10 ]] || echo " Hello World"
myVar = 5
[[ $myVar -gt 10 ]] && echo " Hello World"
myVar = 5
[[ $myVar -gt 10 ]] || echo " Hello World"

Q34. What is not inherited by child process?

Q35. What NFS option allows the root user to access NFS shares as the root user?

Q36. You send an email to a remote client using the following syntax. What will be in the body of the email?

date | mail -s "This is a remote test" user1@rhhost1.localnet.com

Q37. What is the /etc/hosts file used for?

Q38. In an extended regular expression, you would use (pattern){3} to match three instances of the pattern. How would you match the same thing with an extended glob?

Q39. When configuring a Samba share, how would the engineering group be specified in the smb.conf?

Q40. To configure the Kerberos client, which command should you use to import the keytab file?

Q41. To search from the current cursor position up to the beginning of the file using VIM, type __ and then the search criteria.

Q42. What is the job of the NetworkManager daemon?

Q43. Why might would you use the usermod command ?