-   Linux - General (
-   -   Command Prompt Screen (

Stephanie 06-27-2001 09:54 AM

Command Prompt Screen
When I use the command line screen, at the top it displays:

Linux Mandrake release 7.2 (Odessey) for i586
Kernel 2.2.17-21mdk on an i686 / tty1
<computer naem> login:

Can anyone tell me where to go to change this info to something more customized? I do know how to change the computer name, but nothing else.


jharris 06-27-2001 10:32 AM

I'm being lazy!! Have a look at

"here's one I made earlier" (won't make much sense unless you grew up in the UK watching 'BluePeter')


acid_kewpie 06-27-2001 11:29 AM

you can change the /etc/issue, but that's not really a nice thing to do, should really put anythign you might want to display in /etc/motd (Message Of The Day)


Stephanie 06-27-2001 11:43 AM

I tried what you guys said, and it did work until the next boot. Is there a way to stop that from happening?

acid_kewpie 06-27-2001 12:06 PM

the /etc/issue file is generated after each boot by /etc/rc.local Edit this if you really have to, best to use /etc/motd tho IMHO

hazza96 06-27-2001 10:32 PM

Sorry acid_kewpie that's not where it is on Mandrake. Besides that shadowhacker wants something that is displayed 'before' they login. MOTD is only displayed 'after' they login.

The file you need to alter is the /etc/rc.d/rc.local.

In there will be a section that starts with:
# This will overwrite /etc/issue at every boot. So, make any changes you
# want to make to /etc/issue here or you will lose them when you reboot.

This is my customised version. I get cron to run it every hour so that the uptime on the linux logo gets updated. It also gives me the linux logo on a telnet session.

if [ -x /usr/bin/linux_logo ];then
/usr/bin/linux_logo -c -n -f -u > /etc/issue
echo "" >> /etc/issue
> /etc/issue
echo "$R" >> /etc/issue
cp -f /etc/issue /etc/
echo "Kernel $(uname -r) on $a $SMP$(uname -m) / \l" >> /etc/issue
echo "Kernel $(uname -r) on a telnet session" >> /etc/


All times are GMT -5. The time now is 08:47 PM.