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

This is a list of questions that need very short answers. They have to do with L

ID: 3568642 • Letter: T

Question

This is a list of questions that need very short answers.

They have to do with Linux commands in the SSH TELNET client.

How would you view only the files that started between "m" and "p" in one command in the /oc/users/INSTRUCTION/b111 directory?

How would you view only the files that started with "co" and "doc" in one command in the /oc/users/INSTRUCTION/b111 directory?

How would you create a directory called "JUNK" at your home directory?

How would you change to the "JUNK" directory?

How would you copy all the state file in the /oc/users/INSTRUCTION/b111 directory to the "JUNK" directory?

How would you rename the "state1" file to "mystate" in the "JUNK" directory?

How would you delete the "state2" files in the "JUNK" directory?

How would you set the permissions of the "state3" file to it can only be used by the user?

How would you set the permissions of the "JUNK" directory to it can only be used by the user and their group?

What is the difference between execution permission between files and directories?

Explanation / Answer

How would you view only the files that started between "m" and "p" in one command in the /oc/users/INSTRUCTION/b111 directory?
ls /oc/users/INSTRUCTION/b111/[m-p]*

How would you view only the files that started with "co" and "doc" in one command in the /oc/users/INSTRUCTION/b111 directory?
ls /oc/users/INSTRUCTION/b111/co* /oc/users/INSTRUCTION/b111/doc*

How would you create a directory called "JUNK" at your home directory?
mkdir ~/JUNK

How would you change to the "JUNK" directory?
cd ~/JUNK


How would you copy all the state file in the /oc/users/INSTRUCTION/b111 directory to the "JUNK" directory?
cp /oc/users/INSTRUCTION/b111/state* ~/JUNK

How would you rename the "state1" file to "mystate" in the "JUNK" directory?
mv ~/JUNK/state1 ~/JUNK/mystate

How would you delete the "state2" files in the "JUNK" directory?
rm ~/JUNK/state2

How would you set the permissions of the "state3" file to it can only be used by the user?
chmod 700 ~/JUNK/state3


How would you set the permissions of the "JUNK" directory to it can only be used by the user and their group?chmod 770 ~/JUNK

What is the difference between execution permission between files and directories?
a) Execution in files allows you to run the script or executable at command line.
b) Execution in directories allows you to navigate through that director i.e. you can use cd command to go inside that directory.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote