Basic Unix Quiz - 4
Basic Unix commands and system operations quiz covering file management, permissions, processes, and text editing tools
Questions
Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it
- -r
- -x
- -i
- -1
Which of the following directories contain all the Ales created by a user, including his login directory?
- /tmp
- /etc
- /usr
- /dev
Which of the following commands is used to obtain a list of all files by modification time?
- ls -1
- ls -t
- ls -i
- ls -R
The % key allows you
- to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
- to move the cursor to the upperleft corner of the screen
- to move the cursor backward to the beginning of a word
- to move the cursor to the first column in the current line
Which command is used to display the characteristics of a process?
- pid
- du
- ps
- au
Which of the following commands is used to identify the type of file by context?
- ls
- cat
- file
- more
The filed separator in cut command is specified with
- -a option
- -d option
- -r option
- -x option
Which of the following options will be used to display number of blocks used by a file?
- -c
- -i
- -d
- -s
Which option will be used with touch command to change the access time?
- -a
- -b
- -t
- -h
Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
- chmod -R a x progs
- chmod -R 222 progs
- chmod -1 a x progs
- chmod -x a x progs