Question
The subject is UNIX. Please answer questions and include the Exercise number. Exercises: 4.1, A file in a file system with a block size of
The subject is UNIX.
Please answer questions and include the Exercise number.
Exercises:
4.1, A file in a file system with a block size of 1024 bytes contains 1026 bytes. How many bytes of disk space does it occupy?
4.4, Create a file foo. How do you assign all permissions to the owner and remove all permissions from others using (i) relative assignment and (ii) absolute assignment? Do you need to make any assumptions about foos default permissions?
4.9, You tried to copy a file foo from another users directory, but you got the error message cannot create file foo. You have write permission in your own directory. What could be the reason, and how do you copy the file?
4.10 What do you do to ensure that no one is able see the names of the files you have?
4.13 If the owner doesnt have write permission on a file but her group has, can she (i) edit it, (ii) delete it?
5.2, How will you add /* at the beginning of a line and */ at the end?
5.6, In the midst of your work, how can you see the list of users logged in? If you have a number of UNIX commands to execute, which course of action will you take?
5.13, How will you search for a pattern printf and then repeat the search in the opposite direction from that in which the original search was made?
5.16, If the power to the machine is cut off while a vi session is active, how does it affect your work? What salvage operation will you try?
5.18 You made some changes to a read-only file and then found that you cant save the buffer. What course of action will you take without quitting the editor?
Thank You!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started