Таким образом, я должен отобразить текущее время, дату и число зарегистрированных пользователей в сервере человечности, у меня есть eddited баннер, но я не могу команды выполнения на нем. Я должен запустить скрипт для этого или есть ли путь к командам выполнения в текстовом файле как баннер один?
Заранее спасибо
На моей Ubuntu 14.05.5, "баннере" или Message-Of-The-Day (motd
) производится посредством выполнения набора сценариев. Вы могли добавить Ваш к этому процессу. Начните путем чтения man update-motd
, который говорит, частично:
NAME
update-motd - dynamic MOTD generation
SYNOPSIS
/etc/update-motd.d/*
DESCRIPTION
UNIX/Linux system adminstrators often communicate important information
to console and remote users by maintaining text in the file /etc/motd,
which is displayed by the pam_motd(8) module on interactive shell
logins.
Traditionally, this file is static text, typically installed by the
distribution and only updated on release upgrades, or overwritten by
the local administrator with pertinent information.
Ubuntu introduced the update-motd framework, by which the motd(5) is
dynamically assembled from a collection of scripts at login.