명령어 설명
파일의 이름을 바꾸거나 위치를 옮긴다.
사용법 및 옵션
사용법
mv [옵션] source destination
*대상파일(디렉터리)이 존재하지 않을 경우 이름 바꾸기 기능이 된다.
옵션
mv 옵션 | 기능 |
-f --force | 강제 실행 |
- destination이 파일일 때
- destination이 디렉터리일 때
- destination이 파일도 아니고 디렉터리도 아닐 때
반응형
'리눅스 > 기본 명령어 모음' 카테고리의 다른 글
ln 명령어 - make links between files (0) | 2021.01.04 |
---|---|
cp 명령어 - copy files and directories (0) | 2021.01.03 |
cd 명령어 - change directory (0) | 2021.01.03 |
touch 명령어 - change file timestamps (0) | 2021.01.03 |
rm 명령어 - remove files or directories (0) | 2021.01.03 |
댓글