What does the following command do? [code] $ mkdir dir dir/dir_01/dir_02 [/code]

Giao Linh

New member
What does the following command do?
Code:
    $ mkdir dir   dir/dir_01/dir_02
A. create dir, dir_01 and dir_02
B. creates dir_02
C. creates dir only
D. throws an error
 
Answer: a
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.
 

Tìm kiếm

Back
Top