Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider the following questions. Then for each question, execute a command, usi

ID: 3755001 • Letter: C

Question

Consider the following questions.

Then for each question, execute a command, using conditional evaluation, that yields the answer.

1. Is the '/usr/sbin' directory writable to you?

2. Is the file '$HOME/bin/submit' executable?

3. Is the file '/usr/bin/printf' older than '/bin/echo'?

4. Is the string "$PATH" of zero length

5. Is the string "$USER" have a non-zero length

6. Does the string "apple" come first before "oranges"

7. Is the strings "$SHELL" and "$BASH" the same length?

Consider the following questions.

Then for each question, execute a command, using conditional evaluation, that yields the answer.

1. Is the '/usr/sbin' directory writable to you?

2. Is the file '$HOME/bin/submit' executable?

3. Is the file '/usr/bin/printf' older than '/bin/echo'?

4. Is the string "$PATH" of zero length

5. Is the string "$USER" have a non-zero length

6. Does the string "apple" come first before "oranges"

7. Is the strings "$SHELL" and "$BASH" the same length?

Explanation / Answer

If you have any doubts, please give me comment...

1) No, The directory can't writable. It is only read only

2) If we gave executable permissions, then it will executable, Defaultly It is not executable.

3) No

4) No, It has some executable files paths

5) Yes, It has current logged in username

6) Yes

7) Yes, Both will have bash shell path