본문 바로가기
개발/Linux

"~/.zshrc.swp" already exists!

by 안뇽! 2022. 4. 1.
반응형
(1) 
another program may be editing the same file. if this is the case, be careful not to end up with two different instances of the same file when making changes. 
quit, or continue with caution. 


(2) an edit session for this file crashed. if this is the case, use ":recover" or "vim -r /Users/junyeol.ryu/.zshrc" to recover the changes (see ":help recovery"). 
if you did this already, delete the swap file "/Users/junyeol.ryu/.zshrc.swp" to avoid this message. swap file "~/.zshrc.swp" already exists! 
[o]pen read-only, (e)dit anyway, (r)ecover, (d)elete it, (q)uit, (a)bort:

 

위와 같은 메시지가 떴다. 

 

delete the swap file "/Users/junyeol.ryu/.zshrc.swp"

메시지를 자세히 읽어보면 (2) 항목에 "/Users/junyeol.ryu/.zshrc.swp" 를 지우란다.

 

지워보자

 

1. cd ../를 통해 해당 경로로 이동했다.

2. ls -all 을 입력하니 ./zshrc.swp 가 보인다.

3. rm -rf ./zshrc.swp를 지워준다.

 

아래 이미지는 그 과정이다.

 


참고문서 https://subindev.tistory.com/14

반응형

'개발 > Linux' 카테고리의 다른 글

리눅스 환경변수  (0) 2021.10.05
리눅스 사용권한  (0) 2021.10.05
CLI  (0) 2021.07.29
리눅스 기초 명령어  (0) 2021.07.28