In linux, if the current display is full path

Source: Internet
Author: User
The default PS1 & quot; [\ u @ \ h \ W] \1 & quot; parameter settings of PS1 in fc, where \ W is the path setting option, W in upper case is the description mode, and w in lower case is the full path mode. if you change it, the PS1 & quot; [\ u @ \ h \ W] \ $ & quot; is OK; you can also: exportPS1 & quot; [\ u @ \ h \ 'pwd \ '] $ & quot; alia.

PS1 parameter settings
In fc
The default PS1 = "[\ u @ \ h \ W] \ $", where \ W is the path setting option, and W is the description mode in uppercase, the full path mode is in lower case. you can change it to OK.

PS1 = "[\ u @ \ h \ w] \ $ ".

You can also do this:
Export PS1 = "[\ u @ \ h \ 'pwd \ '] $"

Alias qq = 'export PS1 = "[\ u @ \ h: \ w] $ "'

Author "skanion"

Related Article

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.