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...


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




Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here