Homework Solution: Your login name: jsmith i.e., home directory /home/jsmith. The home directory contains the following sub-director…

    Your login name: jsmith i.e., home directory /home/jsmith. The home directory contains the following sub-directories: code, tests, personal, misc Unless otherwise specified, you are running commands from the home directory. 1) Change directory to the tests directory using absolute pathname 2) Change directory to the tests directory using relative pathname 3) Use echo command to create a file named fileA with text content ‘Hello A’ in the misc directory 4) Create an empty file named fileB in the misc directory 5) Copy contents of fileA into fileC 6) Move contents of fileB into fileD 7) Create a tar archive called misc.tar for the contents of misc directory 8) Compress the tar archive to create a misc.tar.gz file 9) Move the misc.tar.gz file to the tests directory 10) Uncompress the misc.tar.gz file 11) Extract the archived file from previous step 12) Change directory to the extracted directory 13) List the files in the extracted directory 14) Change the directory back to the home directory 15) Type in the command to confirm the home directory 16) Create a hard link called fileB to fileA in the extracted directory 17) Create a soft link called fileE to fileC in the extracted directory 18) Use the command to list files in the extracted directory such that inode number is displayed 19) Add write right for all to fileD 20) Change access permission to the extracted directory so that the user has all accesses but the group and people only have read access. 21) Search for compress utilities 22) Look for options in the tar command 23) Compare files fileA and fileC in the extracted directory 24) Search for ‘Hello’ in fileA 25) Display the contents of fileA

    Expert Answer

     
    1 ) cd ../home/jsmith/tests 2 ) cd /tests

    Your login name: jsmith i.e., residence directory /home/jsmith. The residence directory contains the controlthcoming sub-directories: regulation, tests, particular, misc Unless incorrectly precise, you are ordinary orders from the residence directory.
    1) Change directory to the tests directory using absolute pathname
    2) Change directory to the tests directory using not-absolute pathname
    3) Use imitation order to fashion a finish denominated finishA with passage willing ‘Hello A’ in the misc directory
    4) Fashion an space finish denominated finishB in the misc directory
    5) Copy willings of finishA into finishC
    6) Move willings of finishB into finishD
    7) Fashion a navigator archive designated misc.navigator control the willings of misc directory
    8) Contract the navigator archive to fashion a misc.tar.gz finish
    9) Move the misc.tar.gz finish to the tests directory
    10) Uncontract the misc.tar.gz finish
    11) Cite the archived finish from prior step
    12) Change directory to the citeed directory
    13) Roll the finishs in the citeed directory
    14) Change the directory end to the residence directory
    15) Type in the order to strengthen the residence directory
    16) Fashion a rigorous conjoin designated finishB to finishA in the citeed directory
    17) Fashion a impressible conjoin designated finishE to finishC in the citeed directory
    18) Use the order to roll finishs in the citeed directory such that inode estimate is displayed
    19) Add transcribe fit control whole to finishD
    20) Change similarity leave to the citeed directory so that the user has whole similarityes except the collection and nation singly enjoy decipher similarity.
    21) Search control contract utilities
    22) Look control options in the navigator order
    23) Compare finishs finishA and finishC in the citeed directory
    24) Search control ‘Hello’ in finishA
    25) Display the willings of finishA

    Expert Counter-argument

     

    1 ) cd ../home/jsmith/tests
    2 ) cd /tests
    3 ) imitation ‘HELLO A.’ >/misc/A.txt
    4 ) imitation >/misc/B.txt
    5 ) cp A C
    6 ) mv B D
    7 ) navigator -zcvf misc.navigator misc (highest go to the residence directory)
    8 ) gzip misc.tar
    9 ) mv misc.tar.gz /home/jsmith/tests
    10) gunzip misc.tar.tz
    11) navigator -xvf misc.tar
    12) cd misc
    13) ls /misc
    14) cd $home/jsmith
    15) pwd
    16) ln $home/misc/B $home/misc/A
    17) ln -s E C
    18) ls -id /misc
    19) chmod 777 D
    20) cdmod u=rwx misc
    22) c – fashion a archive finish.
    x – cite a archive finish.
    v – appearance the journey of archive finish.
    f – finishname of archive finish.
    t – viewing willing of archive finish.
    j – ooze archive through bzip2.
    z – ooze archive through gzip.
    r – attach or update finishs or directories to stout archive finish
    23) zip misc.zip A C
    24) cat A.txt|grep HELLO
    25) cat A.txt