2019/07/241 motd 시스템 정보. ubuntu 에서는 motd 관련 landscape-common 과 같은 기본적인 시스템정보를 보여줄수있는 패키지를 제공해준다. centos 와 같이 지원해주지 않는 환경에서 시스템정보를 로그인시 바로 간단히 볼 수있게 기본스크립트를 잘 정리해놓은 글이있어 참고를 위해 퍼와서 수정. #!/bin/bash #Simple motd script for Centos 5/6/7 b=`tput bold` n=`tput sgr0` echo "Checking for system updates:" while ps aux | grep -e [y]um > /dev/null; do echo -n .;sleep 1; done & up=`yum -e0 -d0 check-update | awk '{print $1}'` reset .. 2019. 7. 24. 이전 1 다음