QUESTION 16 Why is it important to unmount a storage device before removing it f
ID: 3835259 • Letter: Q
Question
QUESTION 16
Why is it important to unmount a storage device before removing it from a running Unix system?
It automatically notifies all users that their open files have been saved to disk.
It will make sure that any data writes that are in temporary memory buffers will be written to disk before removal.
Without unmounting, the device becomes read-only when used in other computers.
Because it frees up drive letters (like D:, E:) for other storage devices.
QUESTION 17
In the vi text editor, which key sequence will delete the current line while in command mode?
dl
ZZ
x
dd
QUESTION 18
Which of the following is the correct ordering of operating systems, oldest to newest?
(Oldest)Linux, Microsoft Windows 1.0, Unix, BSD, Apple OSX(Newest)
(Oldest)Unix, BSD, Microsoft Windows 1.0, Linux, Apple OSX(Newest)
(Oldest)Microsoft Windows 1.0, Unix, BSD, Linux, Apple OSX(Newest)
(Oldest)BSD, Apple OSX, Microsoft Windows 1.0, Unix, Linux(Newest)
QUESTION 19
In BASH scripting, what is contained in the $0 positional parameter?
This total number of command line arguments.
The user id of the person running the program or script.
The first line of the program or script being run.
The pathname of the program or script being executed.
QUESTION 20
What command would you type to start the graphical user interface in Unix (assuming it has been installed but is not running already)?
(You might need to google this answer)
startx
gnome
X
sgui
a.It automatically notifies all users that their open files have been saved to disk.
b.It will make sure that any data writes that are in temporary memory buffers will be written to disk before removal.
c.Without unmounting, the device becomes read-only when used in other computers.
d.Because it frees up drive letters (like D:, E:) for other storage devices.
Explanation / Answer
QUESTION 16
Why is it important to unmount a storage device before removing it from a running Unix system?
Ans: b)It will make sure that any data writes that are in temporary memory buffers will be written to disk before removal.
Explanation:A Storage device cannot be unmounted when it is `busy’ – for example, when there are open files on it, or when some process has its working directory there, or when a swap file on it is in use. In such case an error message such as umount: /dir1: device is busy will be displayed on the screen. This busy state could be the result of something as simple as an GUI window being open that shows an icon of the directory containing the filesystem, in which case it can be easily solved by closing the window.
(A lazy unmount avoids this problem.)
QUESTION 17
In the vi text editor, which key sequence will delete the current line while in command mode?
Ans: d) dd
Explanation:
QUESTION 18
Which of the following is the correct ordering of operating systems, oldest to newest?
Ans: c) (Oldest)Microsoft Windows 1.0, Unix, BSD, Linux, Apple OSX(Newest)
Explanation: (Launching Years)
QUESTION 19
In BASH scripting, what is contained in the $0 positional parameter?
Ans: c) The first line of the program or script being run.
Explanation: $0 is a Position Parameter.
A positional parameter is a parameter denoted by one or more digits, other than the single digit 0. Positional parameters are assigned from the shell’s arguments when it is invoked, and may be reassigned using the set builtin command. Positional parameter N may be referenced as ${N}, or as $N when N consists of a single digit. Positional parameters may not be assigned to with assignment statements. The set and shift builtins are used to set and unset them. The positional parameters are temporarily replaced when a shell function is executed.
When a positional parameter consisting of more than a single digit is expanded, it must be enclosed in braces.
$0:- Expands to the name of the shell or shell script. This is set at shell initialization. If Bash is invoked with a file of commands, $0 is set to the name of that file. If Bash is started with the -c option, then $0 is set to the first argument after the string to be executed, if one is present. Otherwise, it is set to the filename used to invoke Bash, as given by argument zero
Example:
QUESTION 20
What command would you type to start the graphical user interface in Unix (assuming it has been installed but is not running already)?
Ans: b) gnome
Explanation: Gnome is an open source desktop environment for UNIX workstations. It competes directly with KDE(K Desktop Environment). It ships as the default window manager on some Linux distributions.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.