MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
For creating or removing directories, the user must be positioned above the directory or in the parent directory of the directory, on which the operation is to perform.
A
Ture
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -In the shell, the command cd-is a special case that changes the current working directory to the previous working directory by exchanging the values of the variables PWD and OLDPWD. Note: Repeating this command toggles the current working directory between the current and the previous working directory.

Detailed explanation-2: -Removing Directories ( rmdir ) To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r .

Detailed explanation-3: -You can go back to the parent directory of any current directory by using the command cd .., as the full path of the current working directory is understood by Bash . You can also go back to your home directory (e.g. /users/jpalomino ) at any time using the command cd   (the character known as the tilde).

Detailed explanation-4: -To go up one level of the directory tree, type the following: cd .. The special file name, dot dot ( .. ), refers to the directory immediately above the current directory, its parent directory.

There is 1 question to complete.