Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

At the command prompt, type cat sample 1 and press Enter. Next, type cat hardlinksample at the command prompt and press Enter. Next, type cat

At the command prompt, type cat sample1 and press Enter. Next, type cat hardlinksample at the command prompt and press Enter. Next, type cat hardlinksample2 at the command prompt and press Enter. Are the contents of each file the same? Why?
7
At the command prompt, type ln s sample2 symlinksample and press Enter. Next, type ls -F at the command prompt and press Enter. Does anything in the terminal output indicate that sample2 and symlinksample are symbolically linked? Next, type ls -l at the command prompt and press Enter. Does anything in the terminal output indicate that sample2 and symlinksample are symbolically linked? Next, type ls -li at the command prompt and press Enter to view the inode numbers of each file. Do the two symbolically linked files have the same inode number?
8
At the command prompt, type vi symlinksample and press Enter. Enter a sentence of your choice into the vi editor, and then save your document and quit the vi editor.
9
At the command prompt, type ls -l and press Enter. What is the size of the symlinksample file compared to sample2? Why? Next, type cat sample2 at the command prompt and press Enter. What are the contents and why?
10
At the command prompt, type ln s /etc/samba samba and press Enter. Next, type ls -F at the command prompt and press Enter. What file type is indicated for samba? Next, type cd samba at the command prompt and press Enter. Type pwd at the command prompt and press Enter to view your current directory. What is your current directory? Next, type ls -F at the command prompt and press Enter. What files are listed? Next, type ls -F /etc/samba at the command prompt and press Enter.
Note that your samba directory is merely a pointer to the /etc/samba directory. How can this type of linking be useful?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago