What to turn in All the exercises you\'ve done so far have been practice. Delete
ID: 3712731 • Letter: W
Question
What to turn in All the exercises you've done so far have been practice. Delete all the junk files and directories you've created up to now. Perform the following steps exactly as stated, and in the given order so that the file you end up with is correct 1. Create a subdirectory called lab2 within your cs12a directory, and cd into it 2. Create two subdirectories called public and private within lab2. Set their ACLs as indicated in the following table. Here foobar stands for your username. public private foobar system:anyuser system:authuser system: operator all rl rlid rlidwk all none none noneExplanation / Answer
Hi,
Ans 1-
mkdir lab2
cd lab2
Ans 2 -
mkdir public
mkdir private
Ans 3-
HelloWorld.java file contents:
public class HelloWorld
{
public static void main(String []args){
System.out.println("Hello, lab2!");
}
}
Ans 4- We can create below file named as prog in lab2 directory
pwd > result
echo >> result
fs la public >> result
echo >> result
fs la private >> result
echo >> result
ls -l >> result
echo >> result
java HelloWorld >> result
Ans 5-
chmod 700 prog
Ans 6-
RUn shell script as follows-
sh prog.sh
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.