×
Write terminal commands to do the following:
restricted.txt
.restricted.txt
file to allow the owner to read and write to the restricted.txt
file. Do this using the Octal Notation.restricted.txt
file to only allow the owner, group and everyone to read and write and execute the restricted.txt
file. Do this using the Symbolic notation.secret_files
. Inside the secret_files
folder create a file called first_secret.txt
and another folder called classified
. Inside of the classified
folder create a file called super_secret.txt
. restricted.txt
called hard_link
.classified
folder called classified_link
.For the following exercises, create a text file called vegetables.txt
with the following text:
Lettuce Amaranth Beet Celery Kale Dill Cabbage Broccoli Lettuce Amaranth Beet Spinach Chard Broccoli Cabbage Dill
Write the following terminal commands to do the following
vegetables.txt
.vegetables.txt
.last_three.txt
which contains the last three vegetables in the vegetables.txt
file (do this without the touch
command).wc
and grep
).You can find the solutions here
When you're ready, move on to Terminal Environment