Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
monkrus authored Feb 10, 2021
2 parents 6db8d88 + 2953579 commit 90e274f
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -2459,6 +2459,15 @@
"code",
"design"
]
},
{
"login": "apoage",
"name": "apoage",
"avatar_url": "https://avatars.githubusercontent.com/u/11403095?v=4",
"profile": "https://github.com/apoage",
"contributions": [
"design"
]
}
],
"contributorsPerLine": 7,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Linkedin Quiz Answers, Skill Assessments Test

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-255-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-256-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

> This repository is for those looking for answers to the LinkedIn assessment quiz questions or willing to help others by contributing to the tests. Or possibly you would like to create your first pull request and be added as a contributor. Whatever is your goal - you are always welcome here!
Expand Down Expand Up @@ -437,6 +437,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="http://kariot.me"><img src="https://avatars.githubusercontent.com/u/35885296?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sreehari K</b></sub></a><br /><a href="https://github.com/Ebazhanov/linkedin-skill-assessments-quizzes/commits?author=kariot" title="Code">💻</a> <a href="#design-kariot" title="Design">🎨</a></td>
<td align="center"><a href="https://github.com/flomz"><img src="https://avatars.githubusercontent.com/u/24940563?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Florian Martinez</b></sub></a><br /><a href="https://github.com/Ebazhanov/linkedin-skill-assessments-quizzes/commits?author=flomz" title="Code">💻</a> <a href="#design-flomz" title="Design">🎨</a></td>
<td align="center"><a href="https://github.com/aaronwangj"><img src="https://avatars.githubusercontent.com/u/56976471?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aaron</b></sub></a><br /><a href="https://github.com/Ebazhanov/linkedin-skill-assessments-quizzes/commits?author=aaronwangj" title="Code">💻</a> <a href="#design-aaronwangj" title="Design">🎨</a></td>
<td align="center"><a href="https://github.com/apoage"><img src="https://avatars.githubusercontent.com/u/11403095?v=4?s=100" width="100px;" alt=""/><br /><sub><b>apoage</b></sub></a><br /><a href="#design-apoage" title="Design">🎨</a></td>
</tr>
</table>

Expand Down
108 changes: 108 additions & 0 deletions linux/linux-assesment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
- [ ] df -h
- [ ] listid
- [ ] ls -l

- [ ] blkid \*\*correct

- [x] blkid \*\*correct


#### Q2. Linux file access control lists (ACLs) are **\_**.

- [x] discretionary access control system permissions layered over standard Linux permissions \*\*correct

- [ ] mandatory access control system permissions layered over standard Linux permissions
- [ ] a type of firewall for Linux
- [ ] the same as standard Linux permissions
Expand All @@ -23,6 +28,25 @@
- [ ] ip route show

#### Q4. What does this command string do?


- [ ] mandatory access control system permissions layered over standard Linux permissions

- [ ] a type of firewall for Linux

- [ ] the same as standard Linux permissions



3)When using iproute2, how do you show routing information for an IPv6 network?

- [ ] route -ipv6
- [ ] route
- [ ] ip -6 route show \*\*correct
- [ ] ip route show

4)What does this command string do?

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

- [ ] It finds all files using ls -l and hands them off to the find command to display.
Expand Down Expand Up @@ -128,8 +152,12 @@ ps -e --format uid,pid,ppid,%cpu,cmd

- [ ] The backup drive is corrupted and needs to be re-created.


- [x] When the backup drive was duplicated, the label was as well. When booted, the system mounted the old duplicated drive by its identical label. \*\*correct(I guess.

- [x] When the backup drive was duplicated, the label was as well. When booted, the system mounted the old duplicated drive by its identical label. \*\*correct(I guess)


- [ ] There is a conflict between the physical location of the backup drive and the original drive.

- [ ] The backup process went wrong, and the old drive was duplicated over the original drive.
Expand All @@ -140,8 +168,12 @@ ps -e --format uid,pid,ppid,%cpu,cmd

- [ ] A redirect sends output to STDOUT and a file, whereas a tee sends output only to STDOUT.


- [ ] Nothing, they are the same. \*\*correct

- [x] Nothing, they are the same. \*\*correct


- [ ] The tee command sends output to STDOUT and a file, whereas a redirect sends output only to a file.

#### Q16. What does the /etc/nsswitch.conf file manage?
Expand All @@ -152,8 +184,12 @@ ps -e --format uid,pid,ppid,%cpu,cmd

- [ ] alternative DNS services


- [ ] sources for name service information \*\*correct

- [x] sources for name service information \*\*correct


#### 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'
Expand All @@ -164,8 +200,12 @@ echo \$myNumber | sed -e 's/^[[:digit:]][[:digit:]][[:digit:]]/(&)/g'

- [ ] It will output the entire 10-digit number inside parentheses.


- [ ] It will output the same 10-digit number, but the first 3 digits will be inside parentheses. \*\*correct

- [x] It will output the same 10-digit number, but the first 3 digits will be inside parentheses. \*\*correct


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

- [ ] None of these answers. yum does not support downloading packages without installing them.
Expand All @@ -174,119 +214,187 @@ echo \$myNumber | sed -e 's/^[[:digit:]][[:digit:]][[:digit:]]/(&)/g'

- [ ] -d


- [ ] --downloadonly \*\*correct

- [x] --downloadonly \*\*correct


#### Q19. What character class is equal to this set?
[0-9]

- [ ] [[:alnum:]]

- [ ] [[:digit:]] \*\*correct

- [x] [[:digit:]] \*\*correct

- [ ] [[:alpha:]]
- [ ] [[:num:]]

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

- [ ] zip

- [ ] tar \*\*correct

- [x] tar \*\*correct

- [ ] archive
- [ ] gzip

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

- [ ] Restart dhcpd.
- [ ] Run /etc/hostname.

- [ ] Nothing, the system notices automatically. \*\*correct

- [x] Nothing, the system notices automatically. \*\*correct

- [ ] Notify systemd to update it by restarting the systemd-hostnamed service.

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

- [ ] vgadd
- [ ] vgresize
- [ ] vgappend

- [ ] vgextend \*\*correct

- [x] vgextend \*\*correct


#### Q23. When would this system cron job run its task?
0 1 \* \* \*

- [ ] every minute of the hour
- [ ] every hour of every day

- [ ] every day at 1:00 AM \*\*correct

- [x] every day at 1:00 AM \*\*correct

- [ ] only on Mondays

#### Q24. ifconfig has been deprecated. What command is now recommended for changing IP addresses in the live config?

- [ ] netconf
- [ ] ipconfig
- [ ] ipman

- [ ] ip \*\*correct

- [x] ip \*\*correct




#### 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?

- [ ] apache_enable_homedirs
- [ ] httpd_enable_userdirs

- [ ] httpd_enable_homedirs \*\*correct

- [x] httpd_enable_homedirs \*\*correct

- [ ] httpd_enable_userhome_dirs

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

- [ ] The passwd command is not used for locking passwords.
- [ ] There is no password -l option.

- [ ] It locks only the password, not the account, so users can still authenticate with keys or other methods. \*\*correct(I guess)

- [x] It locks only the password, not the account, so users can still authenticate with keys or other methods. \*\*correct(I guess)

- [ ] It does lock the account, keeping users from logging in even if they are using other authentication methods.

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

- [ ] Piping into | pipes both stdout and stderr. Piping into |& pipes only stderr.

- [ ] Piping into | pipes stdout. Piping into |& pipes stdout and
stderr. \*correct


- [x] Piping into | pipes stdout. Piping into |& pipes stdout and stderr. \*correct

- [ ] Piping into | pipes both stdout and stderr. Piping into |& pipes only stdout.
- [ ] Piping into | pipes stdout. Piping into |& pipes all open file descriptors.

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

- [ ] The kernel identifies it as one of the names of extended commands.

- [ ] It has the same name as the file it modifies.
*Correct* - [ ] It has the SUID permission mode and is owned by root.

- [x] It has the same name as the file it modifies. *Correct*
- [ ] It has the SUID permission mode and is owned by root.

- [ ] It is a system administration command.

#### Q29. When a user deletes a file using the rm command, Linux will **\_**.

- [ ] always ask for confirmation
- [ ] back up the file before it deletes the file

- [ ] ask for confirmation if configured to do so \*\*correct

- [x] ask for confirmation if configured to do so \*\*correct

- [ ] never ask for confirmation

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

- [ ] Access to a drive is faster than with standard partitions.
- [ ] Volumes can be resized smaller without unmounting them.
- [ ] Repairing filesystem errors is easier than with standard partitions.

- [ ] Volumes can be resized even if the free space is not contiguous. \*\*correct

- [x] Volumes can be resized even if the free space is not contiguous. \*\*correct


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

- [ ] Globs create a list; brace expansion matches pattern.

- [ ] Brace expansion requires files to exist; globs do not. ( I dont know the answer)

- [x] Brace expansion requires files to exist; globs do not. ( I dont know the answer)

- [ ] Brace expansion creates a list; globs mart the list of pathnames.
- [ ] Globs get processes first and brace expansion later.

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

- [ ] -d
- [ ] -k

- [ ] -b \*\*correct

- [x] -b \*\*correct

- [ ] -x

#### Q33. Which choice will not print "Hello World" in the terminal?

- [ ] myVar = 5

[[ $myVar -lt 10 ]] && echo " Hello World" \*\* I dont know the answer
- [ ] myVar = 5
[[ $myVar -lt 10 ]] || echo " Hello World"
- [ ] myVar = 5

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

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

0 comments on commit 90e274f

Please sign in to comment.