How do I change the login prompt in Linux?

How do I change the login prompt in Linux?
Answer
If you are using the C shell, you would edit the . login file to change your prompt. Use VI or emacs to edit the file. Change the line set prompt
=”$user on `hostname`> ” to set prompt=”%”.
…
In the users home directory there are the following initialization files:
  1. cshrc.
  2. login.
  3. profile.
 

Tìm kiếm

Back
Top