xmotd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xmotd: command not found
or when using sudo you get the following error message
sudo: xmotd: command not found
Solutions to xmotd: command not found
How To Fix xmotd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xmotd is provided by xmotd package.
xmotd is:
Xmotd is a message-of-the-day browser for X11 (with additional sysvnews-like support for dumb terminals). It displays a customizable message box which displays each message-of-the-day until the user has read them all, and then creates a stamp-file.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xmotd
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xmotd.
sudo apt -y install xmotd
Or if you have aptitude installed you can use the following command.
sudo aptitude install xmotd
Summary
In this tutorial we learn how to fix xmotd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.