rm 명령어는 "remove"의 줄임말로, 파일이나 디렉토리를 삭제할 때 사용됩니다.

 

기본적인 사용법

rm [option] file/directory

 

option

  -f   강제 삭제
  -i   삭제 여부 확인
  -r OR -R   디렉터리 삭제

 

# rm file
rm example.txt

# 강제 rm file
rm -f example.txt

# rm 여부 확인
rm -i example.txt

# rm directory
rm -r /User/users/workspace

 

 

 

반응형

'Linux' 카테고리의 다른 글

Linux Run Command 다른권한으로 실행  (0) 2023.04.05
Linux Service 등록  (0) 2023.03.31
Scp remote to Local to remote  (0) 2023.03.14
awk 명령어  (0) 2023.03.07
sed 명령어  (0) 2023.03.06

+ Recent posts