Document directory
Task: display current bash prompt (PS1)
Task: modify current bash prompt
Task: add colors to the prompt
Task: how to make the prompt setting permanent
Tput command
Handy tput commands
Colors {code} code for tput command
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
After you successfully log on to a text interface, in most cases,
You will see a flickering square or bottom line on the screen (depending on different versions ),
We call it a * cursor * (cursor ).
The cursor is used to tell you where the button
This article is part of the "write-A-shell" series, in which we first complete a shell-based implementation of the most basic functionality in the shells. In this article, I will describe the implementation of the idea, as well as the introduction
| Introduction If you are using GIT with the command line, you can use the git status command to query which branch you are working on now, but it's hard to forget what branch you're under, so you have a mug with a wrong operation. It is no doubt
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
First, let's take a look at the original setup prompt ~ In the bashrc configuration file, the initial definition is as follows: setafancyprompt (non-color, unlessweknow
First, let's take a look at the original setup prompt, in the ubuntu feisty ~ /.
The specific meaning of the prompt can be consulted: http://billie66.github.io/TLCL/book/zh/chap14.htmlUbuntu16.04 personal configuration as follows, for later review1 functionGit_branch {2branch= "' Git branch 2>/dev/null | grep "^\*" | Sed-e "s/^\*
One of the benefits of Git is that the branch management of the code becomes an extremely convenient thing, the branch only retains the difference, does not have to copy any files, does not connect the network, quickly creates, uses is deleted. The
If you are not logged in as the root user, type the command Su-and then enter the root password to switch to root user mode.1. Create a new User: At the command line, type Useradd, followed by a space and the user name of the new user you created
Presumably in the command-line mode for a long time, all look tired of that monotonous and ugly cue, the individual think also accounted for some bit, if the command long words will break.Want to change intoCD ~/touch bash_profilevim.
OpenSSH is a free open-source implementation of the SSH Secure SHell protocol. It uses secure and encrypted network connection tools instead of telnet, ftp, rlogin, rsh, and rcp tools. OpenSSH supports SSH protocol versions 1.3, 1.5, and 2. Since
OpenSSH
OpenSSH is a free open-source implementation of the SSH (Secure Shell) protocol. It uses secure and encrypted network connection tools instead of Telnet, FTP, rlogin, RSH, and rcp tools. OpenSSH supports SSH protocol versions 1.3, 1.5, and 2.
Here's a list of keyboard shortcuts you can use to quickly perform common tasks. These actions are not limited to what is listed, but to learn more about the shortcut actions of the command line and keyboard.
[Ctrl] + [Alt] + [Backspace] = Kill
Linux Command Line editing common shortcut keys (practical, General), linux Command Line
This article describes common shortcut keys for Linux Command Line editing.
Linux Command Line editing shortcut:
History display command history list
← (Ctrl +
Source: http://bbs.chinaunix.net/thread-4176195-1-1.htmlHistory displays a list of command histories↑ (ctrl+p) Show previous command↓ (CTRL + N) Displays the next command!num the NUM command that executes the command history list!! Executes the
Move Cursor "CTRL + A flag moves to the beginning of the line. It can be used in most text editors and in the URL fields of Mozilla.Ctrl+e move the cursor to the end of the line. It can be used in most text editors and Mozilla's URL fields.ALT+F
"Move Cursor"CTRL + A flag moves to the beginning of the line. It can be used in most text editors and in the URL fields of Mozilla.Ctrl+e move the cursor to the end of the line. It can be used in most text editors and Mozilla's URL fields.ALT+F
Transferred from: http://www.cnblogs.com/webzhangnan/p/3221410.html"Move Cursor"CTRL + A flag moves to the beginning of the line. It can be used in most text editors and in the URL fields of Mozilla.Ctrl+e move the cursor to the end of the line. It
14.3. File compression and archiving
Sometimes we need to store a set of files in a single file for backup or transfer to another directory or even another computer. Sometimes we also need to compress files into one file, so they use only a small
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.