MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What does the following command do?$ mkdir dir ____ 01 dir ____ 02 dir ____ 03
A
create dir, dir ____ 01 and dir ____ 02
B
creates dir ____ 02
C
creates dir only
D
throws an error
Explanation: 

Detailed explanation-1: -Explanation: The above command first creates a directory named dir and after that it creates a subdirectory dir 01 under dir. At last, it creates another subdirectory dir 02 under dir 01. Thus a directory tree is formed in which directory dir is the parent directory and dir 01, dir 02 are subdirectories.

Detailed explanation-2: -Use the mkdir command to create one or more directories specified by the Directory parameter. Each new directory contains the standard entries dot (.) and dot dot (..). You can specify the permissions for the new directories with the-m Mode flag.

Detailed explanation-3: -Create a directory The basic syntax for using this command is mkdir dir (replace dir with the desired name of your directory). Before creating any directory or file, remember that most Linux filesystems are case-sensitive.

Detailed explanation-4: -The mkdir stands for ‘make directory’. With the help of mkdir command, you can create a new directory wherever you want in your system. Just type “mkdir <dir name>, in place of <dir name> type the name of new directory, you want to create and then press enter.

There is 1 question to complete.