Question
Using Linux 1.Access Control Lists (ACL) offer a more advanced way to manage permissions than the basic rwx. In the assignment you used them via
Using Linux
1.Access Control Lists (ACL) offer a more advanced way to manage permissions than the basic rwx. In the assignment you used them via the getfacl and setfacl commands. Explain what ACL can do that goes beyond basic Linux permissions.
2.Bibidi wants to find a file that she used in one of her projects. She does not remember in which project it was, but she knows that it's a small file that contained the word algorithm and had the .jar extension. Additionally, all her projects are in her home Project folder, and the file she wants was a library that's normally located within the lib folder of a project (no subfolder). How can
3.Bibidi efficiently find her file? Be detailed.
a) The accountant created a folder in which he saved taxes as Tax.xls. Later, he wrote another file also named Tax.xls and moved it into the same folder. Months later, he realizes that he needs to use the tax file that was initially in the folder. What is the problem?
b) The IT person says that he may have created hard links to the initial Tax.xls file. Why would
that make a difference?
Write a script moveIfNotFull that will move a file into a directory only if that directory contains
less than X files, where X is given as argument. For example, if we write
./moveIfNotFull.sh bad.log ./tmp 10
and ./tmp has already 10 files or more, then bad.log should not be moved. Ensure that 3 arguments are provided, and that both the file and directory do exist.
4.Write a script isItHere.sh that takes as argument a filename. It shows "yes" if the file is in the current folder, and "no" otherwise
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