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
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