Command line prompt
![](https://seccdn.libravatar.org/avatar/2600937905ca15ce955868d53be7f11b.jpg?s=120&d=mm&r=g)
How can i change the format of the command line prompt? Like redhat's ' [username@computername folder] #. SuSE's is very anoying it reminds me of DOS showing the absolute pathname instead of just the current folder. Also how do i get rid of the have a great time when i ssh into a suse machine? Thanks -- Brian York http://www.brianyork.net
![](https://seccdn.libravatar.org/avatar/6bd973f82fe845b4f52a4c31ac9aea0c.jpg?s=120&d=mm&r=g)
jvollmer@visi.com
How can i change the format of the command line prompt? Like redhat's ' [username@computername folder] #. SuSE's is very anoying it reminds me of DOS showing the absolute pathname instead of just the current folder.
You'll want to add this to your .bashrc file: PS1="[\u@\h:\w]$ " (include the quotes) See the bash(1) man page or the BASH-PROMPT HOWTO for more information on how to set PS1 to your liking.
Also how do i get rid of the have a great time when i ssh into a suse machine?
That "have a great time" message is in your /etc/motd file. Change it to whatever suits you. -- JAY VOLLMER JVOLLMER@VISI.COM TEXT REFS DOUBLEPLUSUNGOOD SELFTHINK VERGING CRIMETHINK IGNORE FULLWISE
participants (2)
-
Brian
-
Jay Vollmer