I am using bash on Windows and the bash prompt string I see is too big: code2care@LAPTOP-3UHXXRYY:/#, I would rather like it to be a hash (#) or a dollar ($) sigh, let's see how we can change it,
- Open bash,
- Type su root to switch to root account,
- Now type nano ~/.bashrc to open the bashrc file where we will set the PS1 prompt configuration,
- At the end of the file type PS1="\e[0;32m $ \e[0m",
- Press Ctrl + O and Enter, and press Ctrl + O to exit,
- Either close the bash terminal or type source ~/.bashrc to apply changes,
- You prompt now should be in a $ green color.
Change Bash Prompt String
More Posts related to Linux,
- Terminal display next month Calendar
- How to change bash terminal prompt string and color
- How to exit from nano command
- How to Display content of a file in Terminal Screen?
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- 3 Commands to stop Nginx Server
- How to check file permissions for your file using Linux/Unix/macOS Terminal Command
- Create Hidden File or Directory using Shell Command
- bash: cls: command not found
- How to install python pip on Ubuntu using apt command
- The Date Command and its usage [Linux - Unix - macOS]
- SCP Copy all files from directory to Local Folder
- Create and write file in single Linux/macOS command
- Install OpenSSL on Linux/Ubuntu
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- Check SSH/OpenSSH version Command
- Execute .bin and .run file Ubuntu Linux
- What does apt-get update command does?
- How to ls command to output one entry per line [macOS/Linux/Bash]
- 3 ways to clear screen on Linux Terminal
- How to backup a file in Linux/Unix
- How to quit or exit SFTP Prompt on Terminal
- How to use SCP Command to Copy Directory
- zsh hello world example
- How to remove/delete a directory in Linux/macOs
More Posts:
- How to close all tabs of Notepad++? - NotepadPlusPlus
- Spotlight Search Mac Keyboard Shortcut - MacOS
- How to detect Browser and Operating System Name and Version using JavaScript - JavaScript
- How to Update Chrome Browser on Mac? - Chrome
- Android Emulator window was out of view and was recentered - Android-Studio
- CSS: Apply opacity only for div background and not text - CSS
- 100+ Hashtags for BST ARMY - BTS
- Android Error Generating Final Archive - Debug Certificate Expired - Android