PS1 = '[/[/033 [01; 32 m/]/h:/[/033 [01; 34 m/]/W/[/033 [00 m/]/$'A brief explanation:The useful information is as follows:PS1 = '[/h:/W]/$'/H display the current host name/W display the current directory/$ Prompt[] For beautyThe result is as
PS1 & amp; #39; [/[/033 [01; 32 m/]/h:/[/033 [01; 34 m/]/W/[/033 [00 m/]/$ & amp; #39; a simple explanation: the useful information in the question is: PS1 = & amp; #39; [/h:/W]/$ & amp; #39; /h display the current host name/W display the current
If you can easily make shell prompt lines colorful and contain more information, why should you stick to the monotonous standard shell prompt line? In this article, Daniel Robbins explains how to obtain the shell prompt line that meets your needs
Offers: Zstack cloud computingContent IntroductionCommand-line operations are undoubtedly the most time-consuming process when managing Linux servers. For most users, this means a lot of time to manipulate the bash shell.While most distributions
In this chapter we'll look at a seemingly trivial detail-our shell. This examination would reveal some of the inner working of the shell and the terminal emulator program itself.Many things in linux,the shell prompt was highly configurable,and while
1. PS1: (set the prompt character)
This is interesting. You can customize your own prompt;
Every time we press the [enter] key to execute a command, the prompt character will appear again, and we will take the initiative to read the variable
# PS1 = 'custom content' pay attention to the single quotation mark examples on both sides: PS1 = '(/u @/H/D/T)/$ 'your PS1: the user's usual prompt. PS2: the first line is not complete. Wait for the prompt entered in the second line. Linux system
Basics of Linux Learning
1, what is Linux?
To be exact, the Linux kernel (the core program of the system), whose kernel copyright belongs to Linus Torvalds, is issued under the GPL (GNU general public License) Copyright Agreement, and anyone can
When you open a Shell terminal in a Linux environment, you will see a Bash prompt similar to the following in the command line: [[email protected] $host ~]$ do you know that the command line prompt can actually be set to add many very useful
In Linux, you must be clear about how to modify the terminal prompt for a Linux Terminal. Recently, we found that the absolute path indicated by the terminal is very long after entering a deep level of a folder directory, this makes people feel
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.