Đinh Văn Đức
New member
How do I change the prompt in Terminal?
Answer
To change your default command line prompt, follow these instructions:
To remove (or delete) a file or directory in Linux from the command line, use the rm (remove) command.
Be extra careful when removing files or directories with the rm command, because once the file is deleted it cannot be recovered.
If the file is write protected you will be prompted for confirmation as shown below.
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.
Code:
https://commons.wikimedia.org/wiki/User_talk:Lokal_Profil/Arkiv
Be extra careful when removing files or directories with the rm command, because once the file is deleted it cannot be recovered.
If the file is write protected you will be prompted for confirmation as shown below.