MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command is used to create a directory?
A
create directory
B
create folder
C
mk dir
D
mk directory
Explanation: 

Detailed explanation-1: -The basic syntax for using this command is mkdir dir (replace dir with the desired name of your directory).

Detailed explanation-2: -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.

Detailed explanation-3: -Creates a directory or subdirectory. Command extensions, which are enabled by default, allow you to use a single mkdir command to create intermediate directories in a specified path. This command is the same as the md command.

Detailed explanation-4: -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-5: -To create a directory in Linux, Unix, or any variant, use the mkdir command. For example, below, we are creating a new directory called “hope” in the current directory. Once the new directory is created, you can use the cd command to change and move to that directory.

There is 1 question to complete.