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

Answer for Q10 #844

Merged
merged 1 commit into from
Dec 7, 2020
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
8 changes: 2 additions & 6 deletions bash/bash-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,14 @@ awk -F: '/user1/{print $1 "-" $3 "-" $6}' /etc/passwd

#### Q10. If file.sql holds SQL statements to be executed, what will be in file.txt?

##### I cannot reproduce this question, but at first sight I don't see correct answer, because no-one write to file.txt and content doesn't change

##### I suppose the correct script is _mysql < file.sql > file.txt_ then the correct answer is fourth option.

```bash
mysql < file.sql < file.txt
mysql < file.sql > file.txt
```

- [ ] a copy of the contents of file.sql
- [ ] an error indicating that this is invalid syntax
- [ ] the error output of the MySQL command
- [ ] the non-error output of the MySQL command
- [x] the non-error output of the MySQL command

#### Q11. How does the SUID or setuid affect executable commands?

Expand Down