리눅스 분류
파일명이 이상해서 안지워지는데요..
작성자 정보
- 황정호 작성
- 작성일
컨텐츠 정보
- 1,870 조회
- 1 댓글
- 0 추천
- 목록
본문
인포 님의 글
문제의 파일 명은
-rw-r--r-- 1 root root 540556 5월 12 01:50 -???:
drwxr-xr-x 20 root root 4096 6월 7 14:02 .
drwxr-xr-x 20 root root 4096 6월 7 14:02 ..
위처럼... -???: 입니다.
몇가지 해 봤는데 삭제하기가 쉽지 않네요...
화일명이 특수문자 또는 기호일시 등등 ...
리눅스에서는 "..." 로 묵으로 한화일로 익식을 하게됩니다.
여기서 간단히 rm "-???:" 을했을시 -때문에 옵션이 틀리다는 메세지를 뛰우게 됩니다.
지우는 방법은 rm -- "-???:" 입니다.
관련자료
-
이전
-
다음
댓글 1
인포님의 댓글
- 인포
- 작성일
[root@localhost /]# ls
-???: boot etc initrd lost+found proc sbin tftpboot udev var
bin dev home lib mnt root sys tmp usr
[root@localhost /]# rm -- "-???:"
rm: cannot lstat `-???:': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-???*"
rm: cannot lstat `-???*': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-??*"
rm: cannot lstat `-??*': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-?????"
rm: cannot lstat `-?????': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-????"
rm: cannot lstat `-????': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "?????"
rm: cannot lstat `?????': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "????"
rm: cannot lstat `????': 그런 파일이나 디렉토리가 없음
[root@realmsg /]# rm -- "????*"
rm: cannot lstat `????*': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- -???:
rm: remove 일반 파일 `- 33 33 33:'? y
감사합니다... "" 이건 없어야 하는군요.
-???: boot etc initrd lost+found proc sbin tftpboot udev var
bin dev home lib mnt root sys tmp usr
[root@localhost /]# rm -- "-???:"
rm: cannot lstat `-???:': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-???*"
rm: cannot lstat `-???*': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-??*"
rm: cannot lstat `-??*': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-?????"
rm: cannot lstat `-?????': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "-????"
rm: cannot lstat `-????': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "?????"
rm: cannot lstat `?????': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- "????"
rm: cannot lstat `????': 그런 파일이나 디렉토리가 없음
[root@realmsg /]# rm -- "????*"
rm: cannot lstat `????*': 그런 파일이나 디렉토리가 없음
[root@localhost /]# rm -- -???:
rm: remove 일반 파일 `- 33 33 33:'? y
감사합니다... "" 이건 없어야 하는군요.