Shell prompt in Linux

 

What is shell prompt in Linux?

The shell prompt (or command line) is where one types commands. When accessing the system through a text-based terminal, the shell is the main way of accessing programs and doing work on the system. In effect, it is a shell surrounding all other programs being run.

 

How To Customize Bash Prompt in Linux

  1. Display Username and Domain Name.
  2. Add Special Characters.
  3. Display Username Plus Shell Name and Version.
  4. Add Date and Time to The BASH Prompt.
  5. Hide All Information in the BASH Prompt.
  6. Differentiate Root User From Normal User.
  7. More BASH Prompt Options.

 

Customize Git Bash Shell config

  1. Locate the Git installation folder on your computer.
  2. Make a backup of the git-prompt.sh file in Git's etc\profile. ...
  3. With administrator rights, edit the properties in the file named PS1.
  4. Save the git-prompt.sh file.
  5. Open a new Git Bash Shell prompt to see the customized properties display.

 

Comments

Popular posts from this blog

Introduction to Computer

History of Computer

Computer Generation