Question 5) 8 marks] A) Consider the following listings for a partition which us
ID: 3604419 • Letter: Q
Question
Question 5) 8 marks] A) Consider the following listings for a partition which uses 1KB blocks 275201 drwxr-xr-x 2 jfenwick jfenwick 4.0K Sep 12 11:30 bin 275202 drwxr-xr-x 2 jfenwick jfenwick 4.0K Sep 12 11:30 docs 275203 drwxr-xr-x 2 jfenwick jfenwick 4.0K Sep 12 11:30 tmp /$ 1s -lih /birn 275206 -rwxr-xr-x 1 jfenwick jfenwick 1006K Sep 12 11:30 bash 275205 -rwxr-xr-x 1 jfenwick jfenwick 51K Sep 12 11:30 cat 275204 -rwxr-xr-x 1 jfenwick jfenwick 116K Sep 12 11:30 ls 275213 -rr-r-- 2 jfenwick jfenwick 693 Sep 12 11:30 process.sh 275207 -rwxr-xr-x 1 jfenwick jfenwick 91K Sep 12 11:30 ps 275211 -r-r-xr-x 2 jfenwick jfenwick 342 Sep 12 11:30 startup.sh /$ 1s -lih /docs 275212 -rw-rr-- 1 jfenwick jfenwick 4.0K Sep 12 12:02 ass3_rules.tex 275199 -rwxr--r-- 1 jfenwick jfenwick 31K Sep 12 11:07 ass4_spec.tex 275215 -rw-rr-- 1 jfenwick jfenwick 2.3K Sep 12 11:29 draft_instructions 275210 -rr-r-- 2 jfenwick jfenwick 7.3K Sep 12 11:17 instructions 275210 -rw-rr-- 2 jfenwick jfenwick 7.3K Sep 12 11:17 instructions.backup 275219 -rr-r-- 1 jfenwick jfenwick 6.4K Sep 12 11:48 instructions.beta 275208 -rwxr-xr-x 2 jfenwick jfenwick 693 Sep 12 11:23 process.sh 275196 lrwxrwxrwx 1 jfenwick jfenwick 10 Sep 12 11:47 process.sh_backup -> process.sh 275218 -rw-r-xr-x 1 jfenwick jfenwick 511 Sep 12 11:59 script.sh 275209 lrwxrwxrwx 1 jfenwick jfenwick 17 Sep 12 11:28 startup.sh -> ../bin/startup.sh Adding up the file sizes in /tmp gives 26K i) instructions.backup is intended as a backup of the current instructions. Why is it a bad idea to use if for this purpose? 2 marks] ii) Which command was used to create process.sh backup? marExplanation / Answer
i)Intructions.backup is as abackup of current instructions why it i bad idea because is it a backup file and now the present direcory is able to run the all required intructions,that backup file contains all the data need to be instrction to be executed and now the backup file and instrcution should be executed may be in same path there may be give some conflicts that's the reason i think so
ii)Which command is uesd to create process.sh_backup-->process.sh
Soln: #!/bin/bash
clear
./process.sh
echo "run process.sh file."
exit;
This is the script file which will be running the process.sh file.if u want to run that particular file go that path and give ./process.sh
iii)which files can execute in the jfenwick in the /doc diretory ?
process.sh
script.sh
startup.sh are the three files to be executed in the docs directory
they have all the read write execute permissions for that folder we can run any of the of the 3 .sh files should be run.
iv) if i run the command rm -rf /tmp/* is exectued by the adminstrator we will get 26 k of memory hould be free are released
an all the files now added after is 26 k
now we have to run the above command we will get 26 kb of memory
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.