![사전 경고 메시지를 숨기거나 비활성화하는 방법은 무엇입니까?](https://linux55.com/image/159710/%EC%82%AC%EC%A0%84%20%EA%B2%BD%EA%B3%A0%20%EB%A9%94%EC%8B%9C%EC%A7%80%EB%A5%BC%20%EC%88%A8%EA%B8%B0%EA%B1%B0%EB%82%98%20%EB%B9%84%ED%99%9C%EC%84%B1%ED%99%94%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
GNU/Linux 시스템을 시작하면 표준 출력에 많은 메시지가 표시됩니다. 그런 다음 메시지를 표시하기 전에 다음과 같은 내용이 표시됩니다.
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
이 메시지를 숨기고 싶습니다. 이를 수행하려면 어떤 파일을 편집해야 합니까?
답변1
마지막 두 세그먼트는 다음 위치에 저장됩니다./etc/motd
;이름을 바꾸거나 삭제하면 간단히 제거할 수 있습니다.
$ cd /etc
$ sudo mv motd motd.old
첫 번째 줄 /etc/update-motd.d/10-uname
은 ;에 지정됩니다. 또한 삭제하거나 다른 디렉터리로 이동할 수도 있습니다(숨길 필요가 없게 만듭니다).
답변2
Motd(오늘의 메시지) 서비스입니다. 우분투에서는 비활성화할 수 있습니다
systemctl stop motd-news.timer
systemctl disable motd-news.timer
나는 데비안에 대한 경험이 많지 않지만 동일하거나 매우 유사할 것이라고 확신합니다.