Brief introduction
In this paper, in order to improve the working efficiency of Linux operation, it gives common operation skills, mainly from Linux terminal management, display git branch, terminal Quick Search History command and so on.
This article mainly takes Ubuntu System as an example to introduce .
Linux Terminal management
It is common for us to use Ctrl+shift+t to create terminal windows, but when this type of window is too large, the operation is not very convenient, so it can be managed by Byobu the tool as follows:
1) Installing Byobu:sudo apt-get Install Byobu
2) Apply Byobu: Enter Byobu in the terminal, then use the following shortcut key:
F2 Create a new window
F3 Move to the previous window
F4 Move to the next window
F5 Refresh All status Notifications
F6 Detach from the session and logout
Shift-f6 Detach from the session, but does not logout
F7 Enter Scrollback/search Mode
F8 Rename the current window
F9 Launch the Byobu Configuration Menu
Alt-pageup Scroll back through the history of this window ' s
Alt-pagedown Scroll forward through this window ' s history
Shift-f2 Split the screen horizontally
Ctrl-f2 Split the screen vertically
shift-f3 Move focus to the next split
Shift-f4 Move focus to the previous split
Shift-f5 Collapse all Splits
Ctrl-f5 Reconnect any SSH/GPG sockets or agents
shift-f12 Toggle all of Byobu ' s keybindings on or off
Show Git branch
In software development, Git is a very good version of the management tool, in practical applications we often need to submit personal program code, so showing the personal Git branch can be used to provide me with a lot of convenience.
Add a statement to the. BASHRC:
Terminal Quick Search History command
In the process of application of Linux, it is often necessary to quickly browse the history of the name, that is, to enter some characters to achieve the desired command, such as Operation MVN clean install-djavadoc.skip=true, mvn clean Deploy- Dmaven.test.skip=true and so on.
In order to be able to use up and down auto-completion in bash, you can do this as follows:
1) Under Home, configure the ". Inputrc" file and enter the following:
$include/ETC/INPUTRC
"\e[a": History-search-backward
"\e[b": History-search-forward
#set Editing-mode VI
2) can also be bound in. BASHRC:
Bind ' "\e[a": History-search-backward '
Bind ' "\e[b": History-search-forward '
Vim Convenient operation
1) The ultimate vim Distribution:https://github.com/spf13/spf13-vim
2) Climate is the ultimate command line tool for Linux:https://github.com/adtac/climate
For details, please refer to the above URL, which is not described in detail here.
Chi Qing gathered
Source: Http://www.cnblogs.com/lyssym
If you think reading this blog gives you something to gain, you might want to click "recommend" in the lower right corner.
If you want to find my new blog more easily, click on "Follow Me" in the lower left corner.
If you are interested in what my blog is talking about, please keep your eye on my follow-up blog, I am a "zhi Qing".
This article is copyright to the author and the blog Park is shared, welcome reprint, but without the author's consent must retain this paragraph, and in the article page obvious location to the original link, otherwise will be prosecuted legal liability.
Linux Application Tips