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

QUESTION 1 Which command would extract the files from an archive named homework-

ID: 3821015 • Letter: Q

Question

QUESTION 1

Which command would extract the files from an archive named homework-archive.tgz?

rm homework-archive.tgz

tar xzf homework-archive.tgz

tar -czf homework-archive.tgz *

tar -tzf homework-archive.tgz

QUESTION 2

Which commands will get you out of the vi text editor without saving your changes?

/quit

ESC :nc

ESC :z

ESC :q!

QUESTION 3

A file named "homework" had the following permissions: -rwxr--r--

Which command could have been typed to change the permissions to this: --wx-w---x

chmod 465 homework

chmod 321 homework

chmod a-r homework

chomd g-r homework

QUESTION 4

You have a file named "thesis.txt" and you want to make a copy of it before doing some heavy editing. What command would you type to create a copy named "thesis-backup.txt"?

mv thesis.txt thesis-backup.txt

cp thesis.txt thesis-backup.txt

cp thesis-backup.txt thesis.txt

copy thesis.txt thesis-backup.txt

QUESTION 5

Which command would you type to view all connected filesystems in Unix?

a.ls /

ps axm

lm -a

mount

QUESTION 6

Who developed the GNU Public License?

Richard Stallman

Linus Torvalds

Eric Raymond

John Hall

QUESTION 7

You have a file named "students.txt" that lists the names of all the students in the schoolsystem. You want to count how many of the names (either first or last) contain Franklin.

Which command would do this for you?

wc -l -s Franklin student.txt

grep -c Franklin students.txt

wc -l students.txt | grep Franklin

grep students.txt Franklin | count -l

QUESTION 8

Which command would you type to view the detailed contents of a directory, including file permssions?

ls -l

ls

dir -a

ld -p

QUESTION 9

Match the term to the definition for various help and documentation systems in Unix.

1.man

2.apropos

whatis

info

Used to display a very brief description of a Unix command.

An alternate form of documentation, sometimes used by the GNU utilities.

Traditional Unix documentation. Considered to be the formal documentation, often very detailed.

Used when you don't know the exact name of the Unix command. With this utility, you can quickly search the list of Unix manuals for a particular search term.

QUESTION 10

If your current working directory is /var/log, which of the following commands would bring you up to the /var directory? (there might be more than one right answer)

cd ..

cd var/

cd /var

cd ./

a.

rm homework-archive.tgz

b.

tar xzf homework-archive.tgz

c.

tar -czf homework-archive.tgz *

d.

tar -tzf homework-archive.tgz

Explanation / Answer

QUESTION 1: b. tar xzf homework-archieve.tgz

QUESTION 2: d. ESC: q!

QUESTION 3: b. chmod 321 homework

QUESTION 8: a. ls-lQUESTION 6: a. Richard Stallman

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