Pko

mkdir 본문

Linux

mkdir

pastko 2021. 6. 23. 19:36

MKDIR

mkdir은 폴더를 생성하는 명령어로

 

mkdir [옵션]... 폴더명...

 

사용법은 위처럼 간단하게 사용할 수 있다

 

 

man mkdir 확인한 옵션은 아래와 같다

-m mode  
         Set the file permission bits of the final created directory to the specified mode.  
         The mode argument can be in any of the formats specified to the chmod(1) command.  
         If a symbolic mode is specified, the operation characters \`\`+'' and \`\`-'' are  
         interpreted relative to an initial mode of \`\`a=rwx''.  

 -p      Create intermediate directories as required.  If this option is not specified, the  
         full path prefix of each operand must already exist.  On the other hand, with this  
         option specified, no error will be reported if a directory given as an operand  
         already exists.  Intermediate directories are created with permission bits of  
         rwxrwxrwx (0777) as modified by the current umask, plus write and search permis-  
         sion for the owner.  

 -v      Be verbose when creating directories, listing them as they are created.

 

-m , --mode = MODE
       

       : 디렉토리를 생성할때 사용 권한도 같이 설정하는 옵션

 

 

-P    : 폴더명을 입력할때 경로와 함께 입력 했을때 경로상 상위 디렉토리를 생성한뒤 폴더명의 폴더를 생성한다.

 

-v    : 디렉토리 생성 후 동작 정보 출력
        ( 디렉토리 정보(이름) 출력 )

'Linux' 카테고리의 다른 글

RM  (0) 2021.06.23