기본명령어

Linux 2021. 1. 19. 14:38

ls --help 설명서

ls -a 모두보기

ls -l 자세히 보기

ls -al 모든 파일 자세히 보기

ls -alS 모드 파일 자세히 보기 큰 파일 순서대로 대문자 S 중요 소문자로 할시 다른 명령어

mkdir -p 하위폴더 여러개 동시 생성

cp a파일 b파일 : a파일을 b파일로 복사, 현재 있는 디렉토리내에서

cp  a파일 /디렉토리 b파일

 

 

 

ls --help

명령어에대한 설명서 

 

root@goorm:/workspace/linux#
root@goorm:/workspace/linux# ls --help
사용법: ls [<옵션>]... [<파일>]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all                  do not ignore entries starting with .
  -A, --almost-all           do not list implied . and ..
      --author               with -l, print the author of each file
  -b, --escape               print C-style escapes for nongraphic characters
      --block-size=SIZE      scale sizes by SIZE before printing them; e.g.,
                               '--block-size=M' prints sizes in units of
                               1,048,576 bytes; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~
  -c                         with -lt: sort by, and show, ctime (time of last

 

 

mkdir -p dir1/dir2/dir3

여러개의 하위 폴더 동시에 생성 단 하위폴더로 생성

root@goorm:/workspace/linux# mkdir -p dir1/dir2/dir3
root@goorm:/workspace/linux#

 

root@goorm:/workspace/linux/dir1/dir2/dir3# mkdir --help
사용법: mkdir [옵션]... 디렉터리...
Create the DIRECTORY(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options too.
  -m, --mode=MODE   set file mode (as in chmod), not a=rwx - umask
  -p--parents     no error if existing, make parent directories as needed
  -v, --verbose     print a message for each created directory
  -Z                   set SELinux security context of each created directory
                         to the default type
      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux
                         or SMACK security context to CTX
      --help     이 도움말을 표시하고 끝냅니다
      --version  버전 정보를 출력하고 끝냅니다

 

-p : 축약형

--parents : 풀네임

 

'Linux' 카테고리의 다른 글

nano 파일 에디터  (0) 2021.01.19
sudo  (0) 2021.01.19
mv  (0) 2021.01.19
cd, rm, rm-r  (0) 2021.01.18
기본 명령어 pwd, mkdir, ls, ls -l  (0) 2021.01.18
블로그 이미지

JustDoIt_Sun

,