Assignment 2

         a. Describe Linux directory structure : absolute pathname, relative pathname
            Absolute pathname
-        Tells about the complete path to a certain file or directory is.
-        All absolute file names start with a slash because the slash indicates the root directory  and then followed by the file system tree directory by directory.
-        We use the slash not only for indicating the root directory, but also for separating the directories on the path.
-        This is different from windows where we use a backslash for separating the directories. 

Relative pathname
-        It starts from the working directory.
-        This is why you need some special symbols for indicating the relative positions in the file system.
-        These symbols are a dot (.) and two dots (..) and they mean the working directory and the parent directory respectively.
  
      b. Explain the difference between the hierarchical structure of Windows file system and Linux file
          system and Linux file system

            Windows file system
-        In Linux there is a single hierarchical directory structure. In Windows, there are typically many partitions with directories under these partitions. 

Linux file system
-        In Linux, everything starts from the root directory, represented by '/', and then expands into sub-directories. In Windows, it had various partitions and then directories under those partitions
-        Unlike Windows, Linux is case sensitive


e. Refer to the figure above, by login as normal user, use command to manage files and directory.
    Print screen the step involved

i.                     mkdir

ii.                   touch


   d.      In OSOS directory it has FILE3 and FILE4. therefore, use command below to be as situation given

i.                     mv

ii.                   cp
iii.                  rm

iv.                 rmdir

  
  e.      Create a file named FILE5 in directory OSOS. give a command as below and discuss the result



i.                     chmod 440 FILE5

ii.                   chown root FILE5

iii.                  chgrp root FILE5

No comments:

Post a Comment