1. Which of the following file name is NOT valid? a. 1+1=2 b. And/Or c. !@#$ d.
ID: 3541214 • Letter: 1
Question
1. Which of the following file name is NOT valid?
a. 1+1=2
b. And/Or
c. !@#$
d. "my report"
2. Which of the following file permission set representation is NOT valid?
a. 400
b. 100000000
c. r--r--r--
d. wxr------
3. Which of the following information is not in the Inode block?
a. file type
b. file size
c. file name
d. inode number
4. Which option of the ls command will not change the number of files in the result if used? For example, in your home directory?
a. -i
b. -d
c. -a
d. -R
5. "/home/gz" is my personal directory, and my working directory is "/home/gz/Documents" now. Which of the following directory path expression is valid and points to my working directory?
a. ~/../gz/Documents
b. ~/Documents/..class="apple-tab-span">
c. /../~/Documentsclass="apple-tab-span">
d. ../gz/Documents
Explanation / Answer
1.
Solution
The file names cannot contain the following characters: #, %, &, *, |, , ;, “, <, , >, ., ?, /, ‘’.
The filename which is NOT valid is !@#$
The correct option is c) !@#$
2.
Solution
The file permission 400 is valid because it matches “-r- --- ---”, the file permission: r—r—r—is valid because all the three: user, group and owner are in read mode which is valid. The file permission: wxr------is valid because the user permissions are write, execute and read, the group permissions and other user permissions are not accessed.
The file permission 100000000 is not valid.
Thus, the correct option is b) 10000000
3.
Solution
Inode store the following information: Mode/permission, owner ID, Group ID, size of the file, time of last access and last modified, number of hard links, file type, inode number.
Thus, the inode block does not contain the file name.
The correct option is c) file name.
4.
The ls -a command lists all the files in the directory including hidden files.
The ls -d command does not list the files in the directory. It only lists the directory.
The ls -i command lists file/directory names along with their inode numbers.
The ls -R command lists the contents of all the directories below the current directory recursively.
The correct options are: a) -i, c)-a, d)-R
5.
~ represents /home/z and .. represents previous directory of /home/z.
“/home/z” is the personal directory and the working directory is “/home/z/Documents”. The directory path expression that is valid and points to the working directory is ~/../z/Documents
The correct option is a)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.