Install

From 탱이의 잡동사니
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

Linux 명령어 install 내용 정리

Basic

파일을 복사하고 속성 정보를 설정한다.

NAME
       install - copy files and set attributes

SYNOPSIS
       install [OPTION]... [-T] SOURCE DEST
       install [OPTION]... SOURCE... DIRECTORY
       install [OPTION]... -t DIRECTORY SOURCE...
       install [OPTION]... -d DIRECTORY...

Options

-p, --preserve-timestamps

Source 파일의 Access/Modification 시간을 Destination 파일로 복사한다.

-d, --directory

모든 대상들을 디렉토리로 취급한다. 즉 대상 디렉토리 안의 모든 내용들을 생성한다.

-D

해당 디렉토리까지의 경로를 같이 생성한다.

$ install -D /dev/null  /tmp/test/sample_01.wav

-m, --mode=MODE

퍼미션을 설정한다(chmod).