728x90
파일을 생성하거나 갱신하는 명령어.
존재하지 않는 파일명을 지정하면 지정된 파일명으로 파일이 생성되며 이미 존재하는 파일을 지정하면 파일의 수정시간이 업데이트
용례 1 : touch hello.py
hello.py 라는 이름의 file 이 생성됨.
용례 2 : touch -t 202101010000 hello.py
hello.py 의 timestamp 가 2021 01월 01일 0시 0분으로 변경됨.
용례 3 : touch test{1..10}
test1,test2....test10 와 같이 10개의 파일을 만든다.
'Ubuntu > linux Command' 카테고리의 다른 글
Linux System Command (netstat) - network statistics (0) | 2021.08.10 |
---|---|
Linux System command (chown) - change owner (0) | 2021.08.09 |
Linux System Command (ifconfig) - interface configuration (0) | 2021.08.09 |
Linux System Command (route) (0) | 2021.08.09 |
Linux Command (grep, pdfgrep) (0) | 2021.08.07 |