Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ConstraintLayout
- 생명주기
- MINUS
- LiveData
- AWS
- elementAt
- Interface
- react native
- Filter
- Kotlin
- union
- CLASS
- recyclerview
- mongoose
- docker
- Service
- function
- class component
- enum
- Swift
- map
- ReactNative
- list
- vuex
- collection
- lifecycle
- Generic
- Foreign Key
- docker-compose
- animation
Archives
- Today
- Total
개발 일기
cp , mv 본문
cp :)
cp는 copy의 약자이며 파일이나 디렉터리를 다른 폴더로 복사하는 간단한 방법입니다.
예제 :)
bak.txt 파일을 subfolder로 복사합니다.
$ cp bak.txt subfolder/
subfolder안에 있는 내용도 다 같이 temp폴더로 복사합니다.
$ cp -r subfolder/ temp/
복사할때 파일의 소유자 권한 및 시간 정보등의 내용이 같이 복사됩니다.
$ cp -rp subfolder/ temp/
mv :)
mv는 linux에서 파일이나 디렉터리를 이동시키는 명령어입니다.
hello라는 폴더를 temp 폴더안에 hello라는 이름으로 이동합니다.
$ mv hello/ temp/hello
'linux' 카테고리의 다른 글
less ? (0) | 2020.04.21 |
---|---|
comm , cmp (0) | 2020.04.20 |
cat , head , tail? (0) | 2020.04.16 |
touch ? (0) | 2020.04.15 |
shutdown (0) | 2020.04.13 |
Comments