搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- MKDIR(建立一個或多個目錄)

Creates one or more directories.

MKDIR dir [dir...]


    dir      - Name of a directory to be created(wildcards are not allowed)

Note:
    1. The parent directory must already exist.
    2. If the directory already exists, mkdir will abort.
    3. Specifying additional directory parameters dependent on previous
       directory parameters is not allowed:
       For example, mkdir new new\test is not allowed.
    4. Redirecting output to a file that exists under the directory specified
       on the command line is not allowed.

Examples:

  * To create a new directory:
    fs0:\〉 mkdir rafter

    fs0:\〉 ls
    Directory of: fs0:\

      06/18/01  08:05p 〈DIR〉          512  test
      06/18/01  11:14p       r           29  readme.txt
      06/18/01  11:50p 〈DIR〉          512  rafter
              1 File(s)         211 bytes
              2 Dir(s)

  * To create multiple directories:
    fs0:\〉 mkdir temp1 temp2
    fs0:\〉 ls
    Directory of: fs0:\

      06/18/01  08:05p 〈DIR〉          512  test
      06/18/01  11:14p       r           29  readme.txt
      06/18/01  11:50p 〈DIR〉          512  rafter
      06/18/01  11:52p 〈DIR〉          512  temp1
      06/18/01  11:52p 〈DIR〉          512  temp2
              1 File(s)         211 bytes
              4 Dir(s)


沒有留言:

張貼留言