How do I change the command prompt in Linux?

How do I change the command prompt in Linux?
Answer
To change your default command line prompt, follow these instructions:
  • 1) Navigate to your home directory: cd ~
  • 2) Create a file called .bash_profile. vi .bash_profile.
  • 3) Add the following line (press i ) export PS1=”$ “
  • 4) Save the file (press Escape , type :wq and hit Enter )
  • 5) Restart Terminal.
 

Tìm kiếm

Back
Top