Linux Terminal freckles Station information Format change/ETC/BASHRC

Source: Internet
Author: User

Gedit/etc/bashrc


The default special symbolic meaning in the shell environment:
\d: Represents the date, in the format weekday month date, for example: "Sun Sep 18"
\h: The full host name.

For example: My machine name is: Redhat.linux, then this name is Fc4.linux
\h: Only the first name of the host is taken, as in the example above, then Redhat.linux,.linux is omitted
\ t: Display time in 24-hour format such as: HH:MM:SS
\ t: Display time in 12-hour format
\a: Display time in 24-hour format: hh:mm
\u: Current user's account name
version number information for \v:bash
\w: The full working folder name.

Home folder will be replaced by ~
\w: Use basename to get the working folder name, so only the last folder is listed
\#: The first few commands issued
\$: prompt character, assuming root. The prompt is: #. The average user is: $
\n  : newline character


In accordance with the above format any changes can be

Then the SOURCE/ETC/BASHRC will be effective.

[Email protected]/mydisk/eclispe_workspace/normandy]# echo $PS 1
[\[email protected]\h \w]\$
[Email protected]/mydisk/eclispe_workspace/normandy]#

Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.

Linux Terminal freckles Station information Format change/ETC/BASHRC

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.