Question: Review questions: LINUX TERMINAL BASIC COMMANDS a ) How can you create a file named -i? Which techniques do not work, and why do they

Review questions: LINUX TERMINAL BASIC COMMANDS

a) How can you create a file named -i? Which techniques do not work, and why do they not work? How can you remove the file named -i?

b) Explain the following error message. Which filenames would a subsequent ls display? $ ls

abc abd abe abf abg abh

$ rm abc ab

* rm: cannot remove 'abc': No such file or directory

c) Explain the error messages displayed in the following sequence of commands:

$ ls -l

total 1

drwxrwxr-x 2 max pubs 1024 2010-03-02 17:57 dirt

$ ls dirt

$ rmdir dirt

rmdir: dirtmp: Directory not empty

$ rm dirt/*

rm: No match.

d) Directory permission

i. Make sure you are NOT the root user for this exercise. Why?

ii. Create a new directory. What is the default permission for this directory?

iii. Create a new file in the new directory. What is the default permission for this file?

iv. Set the directory permission to 400. What does it mean?

v. Set the directory permission to 100. What does it mean?

vi. Set the directory permission to 200. What does it mean?

e) How to set permissions for the following scenarios?

i. You can modify a file but cannot delete it.

ii. You can see the files names (directory content) but you cannot read their contents or modify them.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!