PDA

View Full Version : Hostname on command line



Ambrose
08-08-2003, 01:43 AM
Hi

I would like to make Knoppix show the hostname in the command line.

How do I do this?

- Ambrose

garyng
08-08-2003, 02:17 AM
man bash

then search for PROMPTING

basically, just change ~/.bashrc for a line like PS1="\h" or similar.