gitlabEdit

chmotd command

Summary

You can change your message of the day

Description

If you don't like the default message of the day that is generated by the kernel, then you can use this command to change the message and store it permanently on the config file.

It also has placeholder support, like if you have and placeholders, the placeholder changes to the current system date in the MM/DD/YYYY form, and the placeholder changes to the current system time in the HH:MM:SS AM/PM form.

You can view the placeholders below:

  • : Gets the current user name (currently useless as the message is printed before we are signed in)

  • : Gets the system date in MM/DD/YYYY format (Ex: 12/7/2018)

  • : Gets the system date in , DD, YYYY format (Ex: Friday, December 7, 2018)

  • : Gets the system time in HH:MM format (Ex: 4:30)

  • : Gets the system time in HH:MM:SS AM/PM format (Ex: 4:30:10 PM)

  • : Gets the system standard time zone (Ex: Egypt Standard Time)

  • : Gets the system daylight saving time zone (Ex: Syria Daylight Time)

  • : gets the current operating system.

Command usage

  • chmotd (message)

Examples

  • chmotd This computer is turned on at (shortdate) (shorttime): It changes your MOTD to the message specified, with the placeholders included in the message.

  • chmotd Your system time zone is (timezone): It changes your MOTD to the message specified, with the placeholder included in the message to get current standard time zone.

Last updated