![Nano의 어떤 매개변수가 파일을 자동으로 저장합니까?](https://linux55.com/image/209322/Nano%EC%9D%98%20%EC%96%B4%EB%96%A4%20%EB%A7%A4%EA%B0%9C%EB%B3%80%EC%88%98%EA%B0%80%20%ED%8C%8C%EC%9D%BC%EC%9D%84%20%EC%9E%90%EB%8F%99%EC%9C%BC%EB%A1%9C%20%EC%A0%80%EC%9E%A5%ED%95%A9%EB%8B%88%EA%B9%8C%3F.png)
Nano에서 파일을 자동 저장하려고 하는데 성공하지 못했습니다. 이를 수행하기 위한 옵션은 무엇입니까?
답변1
~에 따르면나노핸드북버전 6.2의 경우
-t, --saveonexit
Save a changed buffer without prompting (when exiting with ^X).
(The old form of the long option, --tempfile, is deprecated.)
set tempfile
에 추가할 수도 있습니다 ~/.nanorc
.
그러나 @Artem의 의견에서 언급했듯이 자동 저장을 사용하여 프로필을 편집할 때는 주의하세요.
https://askubuntu.com/questions/922613/how-to-exit-nano-and-save-to-current-file-automatically