Change your working directory to your login directory Create the file called share using cat command under your login directory. Enter one or two lines of text in it. Display the content of the share file

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

unix 

Read the description at the end of Part I that shows the relationship between directory content, inode table and file content before doing this question.

 

  • Change your working directory to your login directory
  • Create the file called share using cat command under your login directory. Enter one or two lines of text in it.
  • Display the content of the share file
  • Display the number of hard links to the share file ONLY using the long option
  • Using echo command, answer how many hard links (hard link count) the share file has.
  • Display the inode number for the share file using appropriate option.
  • Create the subdirectory, linkdir under your login directory
  • Change working directory to Stay in this directory until the rest of this question.
  • Create a hard link called share2 to the share Remember that the share file is the parent directory and NOT in the current working directory. Hence, you need to specify correct relative or absolute pathname for share file in your hard link command.
  • Display the inode number of share2 file
  • Using echo command, answer whether the inode number for share and share2 files is same or different. Look to the earlier command to see the inode number of share
  • Using echo command, answer what is the inode number of share2 file
  • Display the number of hard links to the share2 file
  • Using echo command, answer the number of hard link count to share2
  • Create a soft (symbolic) link called softShare to the share Caution: If you specify wrong pathname in the softlink, then you will not be able to display the content of the file; instead the system will display an error message.
  • Display the inode number of softShare file
  • Using echo command answer whether the inode number of softShare is same as share or not. From the inode number answer whether share and software are same file or two different files.
  • Display the attributes of the softShare file using long option in the command. Notice that the number of hard links and the file permission on softShare is different from the share
  • Display the content of share2 file
  • Display the content of softShare file
  • Using echo command, answer whether share2 and softSahre have the same content as that of share file or not

 

 

 

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY