Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bash-quiz.md to correct formatting #7052

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions bash/bash-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ cp -R "~/photo dir" /backups #method1
cp -R ~"/photo dir" /backups #method2
cp -R ~/"photo dir" /backups #method3
```

- [ ] None of the three methods will expand to the user's home directory. Only using `"$HOME/photo dir"`will be successful.
- [ ] Only method 1 will expand `"~/"` to the user's home directory and then append the quoted directory name that includes a space.
- [ ] Only method 2 will expand `"~/"` to the user's home directory and then append the quoted directory name that includes a space.
- [x] Only method 3 will expand `"~/"` to the user's home directory and then append the quoted directory name that includes a space.
- [ ] None of the three methods will expand to the user's home directory. Only using `"$HOME/photo dir"`will be successful.

#### Q2. If script.sh is run in the current directory, it will fail. Why?

Expand Down Expand Up @@ -797,7 +796,7 @@ w
- [ ] It doesn't display information about the users currently on the machine.
- [x] It displays information about the users currently on the machine.
- [ ] It displays information about the users currently on the another machine.
- [ ] None of these
- [ ] None of the above

#### Q61. Which sed options should you use to change the second-to-last instance of variable to rock so it would read:

Expand Down