terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user@linux:~$
파일 및 디렉토리 삭제
rm을 사용하여 파일과 디렉토리를 안전하게 삭제하는 방법을 배웁니다.
단계 1
삭제 연습을 위한 테스트 파일을 만드세요.
입력: touch testfile.txt
touch testfile.txt
단계 2
rm을 사용하여 테스트 파일을 삭제하세요.
단계 3
파일 목록을 나열하여 파일이 삭제되었는지 확인하세요.
단계 4
파일이 있는 디렉토리를 만든 후 재귀적으로 삭제하세요. 시도: mkdir testdir && touch testdir/file.txt && rm -r testdir