Configure a prompt for a term in linux

Source: Internet
Author: User
In linux, the prompt configuration of the term can be changed by modifying the PS1 variable in termial. you can select the prompt you like to write it. bashrc file: you can write any text to the prompt: & gt; PS1Thisismyterminal: & gt; thismytermian...
In linux, the prompt configuration of the term can be changed by modifying the PS1 variable in termial. you can select the prompt you like to write it. bashrc file: you can write any text to the prompt:
> PS1 = "This is my terminal:>" This is my termianl:> PS1 = "GO $ www.2cto.com. of course, although This is fun, but it is not very practical. sometimes we want to display some prompts in the prompt: GO $ PS1 = "\ u @ \ h:>" suse @ suse:> suse @ suse:> PS1 = "\ u @ \ h: \ w>" suse @ suse: ~> Suse @ suse: ~> Cd mywork suse @ suse :~ /Mywork>
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.