Debian
Guides/tips/MISC...stc
- Linux 教學計畫 - Unix/Linux 作業系統實務
- 本課程是「64位元Debian Linux作業系統實務-Bookworm版」,由中華民國教育部 112 年度教學實踐研究計畫所贊助,計畫名稱為「Linux 教學計畫 - Unix/Linux 作業系統實務」。在此感謝教育部大力提供經費,補助本課程以及錄製教學影片。
#sudo setup
#src:
#You probably used su to become root. Try using su - instead.
# usermod is almost certainly installed. But it is in /usr/sbin/ and that directory is (by default) only in root's $PATH, not in the $PATH of non-root users. And if you use su to become root, you keep your user's $PATH. If you use su - instead, you get root's $PATH.
su -
#hostname
hostnamectl set-hostname {name-here}