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

QUESTION 1 From your home directory: Create a symbolic link to the file in my ho

ID: 3902107 • Letter: Q

Question

QUESTION 1

From your home directory: Create a symbolic link to the file in my home directory called autos. Call your link by the same name - autos.

What command string did you use to do this?

ls -ln autos

ln -s /users/faculty/fveglian/autos autos

link -n autos

ln -symbolic /users/faculty/fveglian/autos autos

10 points   

QUESTION 2

Within your home directory, create a symbolic link to my home directory. Call the link fvhome.

If you execute: cd fvhome then execute ls -l you can view the contents of my home directory.

True or false?

True

False

10 points   

QUESTION 3

If you were to create a hard link to a file in my home directory, who would own the hard link?

You, the user, would own the hard link.

The root user would own the hard link.

fveglian would own the hard link.

The system administrator owns the hard link.

10 points   

QUESTION 4

What potential problem could you run into if you have multiple writable links to a single file?
Consider this - many users pointing to one file.

No problem. Everyone gets to write to the file.

No problem. It's a free world you know.

Potential problem. Everyone with a writable link to the file could over-write the contents of the file.

No problem at all.

10 points   

QUESTION 5

Match the permissions notation below with the correct words.

rw------

rwxr-x--

r--r--r--

r-xr-x---

read only for user, group, other

read, execute for user and group

read,write for the user

read,write execute for the user

read,execute for the group

10 points   

QUESTION 6

In your own home directory, create a file called permtest. When answering the following questions, use the symbolic method.

What command string will set the permissions on this file so that the only permissions on the file are read-only for the user?

chmod g-r permtest

chmod u-w,g-r,o-r permtest

chmod u-rw,g-r,o+r permtest

chmod u-r,g-w,o-w permtest

10 points   

QUESTION 7

Copy the file called /etc/hosts to your home directory. Set the permissions on the file as follows:

- - - r - - r - - (044)

See what happens when you try to cat the file.

You can deny yourself read access to a file or directory that you own.

Is this true or false?

True

False

10 points   

QUESTION 8

When using the vim editor:

What is the difference between the following command: o or O

No difference.

They both open a file.

o opens a line below the current line.

O opens a line above the current line.

Move cursor to the end of a line.

10 points   

QUESTION 9

When using the vim editor

The key sequence :q! will quit a file without saving the changes that you made prior to exiting.

True

False

10 points   

QUESTION 10

When using the vim editor:

What file do you use to configure the vim editor?

Pick the best file. This file can be created and stored in each users home directory.

.csh

.vimrc

.mailrc

.configure

10 points   

Click Save and Submit to save and submit. Click Save All Answers to save all answers.

ls -ln autos

ln -s /users/faculty/fveglian/autos autos

link -n autos

ln -symbolic /users/faculty/fveglian/autos autos

Explanation / Answer

Please Note: As per Chegg Answering Guidelines, I have answered the first question. Please Post Separate for Separate Questions.

QUESTION 1

From your home directory: Create a symbolic link to the file in my home directory called autos. Call your link by the same name - autos.

What command string did you use to do this?

ls -ln autos

ln -s /users/faculty/fveglian/autos autos

link -n autos

ln -symbolic /users/faculty/fveglian/autos autos

Answer)

ln -s target link

The above is the command for creating a symbolic link to the file in my home directory called autos.

Thus the command will be:

ln -s /users/faculty/fveglian/autos autos

where /users/faculty/fveglian/autos is the target linkand autos is the name of the link.

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