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

nin what the second. means in the command ep foxr/*.txt 22. Which of the followi

ID: 3726358 • Letter: N

Question

nin what the second. means in the command ep foxr/*.txt 22. Which of the following is true if you issue the command In -s home/foxr/somefile home/zappaf/somefile2? a. A hard link is created pointing somefile at somefile2 b. A hard link is created pointing somefile2 at somefilel c. A soft link is created pointing somefile at somefile d. A soft link is created pointing somefile2 at somefile e. An error arises because you cannot create a link from one directory to another Use the following long listing to answer questions 23-25. Assume user zappaf is a member of the group cool and marst is not part of the group cool. -rwxr-r. 1 foxr foxr 183 Jul 23 2014 filel.txt -rw-rw-rw. 1 foxr foxr 577 Jul 28 2014 file2.txt -rwxrw_.1 for cool 4183 Aug 5 2014 file3.txt -rw-rr.1 foxr foxr Aug 19 2014 file4.txt -rwxr-.1 foxr foxr 1183 Aug 20 2014 file5·txt -rw-r 1 foxr cool 431 Sep 12 2014 file6.txt 23. Which of the files is marst able to read from? 24. Provide a chmod command to alter file3.txt so that it is not writable by anyone. Use the ugo+/- method. 25. Provide a chmod command so that filel.txt is not executable by owner and is writable by group. Use the ugo+/- method.

Explanation / Answer

Answer 21)
cp is the copy command in linux from source to destination.
cp ~foxr/*.txt -- Here it will search for copying .txt files extensions which starts with the name in the foxr/ directory of the user.
The dot in the .txt is used to determine the extension which is matched while copying the file.

Answer 22)
$ ln -s file1 link1 is the command in linux to create a soft link from the link to the source file.

So, if we have to issue the command :
ln -s /home/foxr/somefile /home/zappaf/somefile2
It will:
b. A soft link is created pointing somefile2 at somefile