In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to modify the command prompt in Ubuntu, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The specific prompts, by category, are as follows:
Main information:
/ u current login user name
/ h current computer name (e.g. ubuntu)
/ H the domain name of the current computer, such as (ubuntu.ubuntu.com)
/ w the full path to the current directory. The home catalogue will be replaced by ~
/ W uses basename to get the name of the working directory, so only the last directory is listed
/ $the general user is $and the root user is "
Time display
/ t current time (24-hour system, HH:MM:SS stands for hours: minutes: seconds)
/ T current time (12-hour system)
/ @ current time (AM/PM display)
/ d current date
Shell Information:
/ v Bash version
Release number of / V Bash
/ S Shell name
/! Historical number of the Bash command
/ j job serial number
Terminal name of / l Shell
I am directly omitting the user name and host and modifying line 60 of behavior 59.
56 if ["$color_prompt" = yes]; then
57 PS1='$ {debian_chroot:+ ($debian_chroot)} / [/ 033 [01transfer32m /] / u@/h/ [/ 033 [00m/]: / / 033 [01transfer34m /] / w / [/ 033 [00m/] / $'
58 else
59 # PS1='$ {debian_chroot:+ ($debian_chroot)} / uplink debase hlug Universe $'
60 PS1='$ {debian_chroot:+ ($debian_chroot)} [/ w] / $'
61 fi
For the change to take effect immediately, source ~ / .bashrc
When finished, the command prompt changes to: [~] $
About how to modify the command prompt in Ubuntu to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.