The subject is UNIX. Please answer questions and include the Exercise number. Ex
ID: 3737824 • Letter: T
Question
The subject is UNIX.
Please answer questions and include the Exercise number.
Exercises:
4.13 If the owner doesn’t have write permission on a file but her group has, can she (i) edit it, (ii) delete it?
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 can’t save the buffer. What course of action will you take without quitting the editor?
Thank You!
Explanation / Answer
Following is the answer:
4.13 If the owner doesn’t have write permission on a file but her group has, can she (i) edit it, (ii) delete it?
No she can not write or delete it for this she have to change the permission using (chmode +777 filename).
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?
using (who) we caan see the list of users logged in.
If you have a number of UNIX commands to execute then you can use (&) between two commands.
ex:ls -l & cat abc
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?
By using /printf then hit enterTo reverse use ?printf then enter will search the opposite direction
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?
If the power to the machine is cut off while a vi session is active,then changes made after the lase :w command will not be reflected when the file will be opened again.
5.18 You made some changes to a read-only file and then found that you can’t save the buffer. What course of action will you take without quitting the editor?
First open terminal and go to the path where the file is open , and change the file permission using (chmod +777 filename) and then save it.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.