Question: Please fill in al the blanks. Im using Unix system 7. Go to the subdirectory play Copy file passwd from /etc to the subdirectory play
7. Go to the subdirectory play Copy file passwd from /etc to the subdirectory play command you would use 33). .Use ls-al passwd to verify the file passwd is in the subdirectory play and record the link number of 8. Remain in subdirectory play and create a symbolic link called passwd, soft that points to 9. Use Is-al to check the link number of the files. What is the link number for passwd 10. Remain in subdirectory play and create a hard link called passwd hard that points to 11 Use Is -al to check the link numbers for all files. What is the link number for the file. 34) passwd. What command you would use to do this 35) 36_ and passwd soft 37)_ passwd. What command you would use to do this 38) passwd 39)passwd_ hard 40). and passwd soft now? 41). 12. Delete the file passwd _hard, what is the link number for passwd now 42) 13. How would you list all files that begins with the pa using one command 14. How would you list any 5-character filenames with x at the 2od position?44) 15. cat target-filefs) Try it. Try it. ys the contents of target- fles) on the screen. You can also use it to create files from put as follows is the output redirection operator). Note that ? is comment parts. Try these cat > hello.txt # create a file named hell.txt hello world!twrite the contents for file hello.txt (ctrl-d] Is hello.txtcheck if hello.txt exists - display the content of the file cat hello. txt hello world! 16. a) Use cat command in 15 to create a file called myinventory.txt with the given content and format shown below: (Use tab to separate each item horizontally) S/No Name Volume Quantity 01 Textbook 1 10 02 Textbook 2 7 03 Textbook 3 5 04 Note 1A 1 8 05 Note 1B 2 6 06 Note D 3 0 07 Note 2A 1 4 08 Note 2B 2 9 09 Note C 15 b) Enter ls -al myinventory bxt c) What is the size of the file myinventory.tut? 45) c) Record 9 codes in permission field 46) It shows that group users are allowed to read the file myinventory.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
