Original address: http://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
-----------------
BASH Shell:change The Color of my Shell Prompt Under Linux or UNIX by VIVEK Gite on October 6, 2006
How does I
Summary of common Linux commands
LS command:1. ls // list the files and folders in the current directory2. ls-A // list the files and folders in the current directory, including hidden files3. ls-l // list details4. ls directory // list files under
Here are some keyboard shortcut operations that you can use to quickly execute common tasks. These operations are not limited to the content listed. To learn more about the command line and keyboard shortcut operations,
Linux Command line edit shortcut keys
History 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
1 Linux Command line edit shortcut keys:2 3 history displays a list of command histories4 5↑ (Ctrl +p) Display the previous command6 7↓ (Ctrl +N) Display the next command8 9!Num executes the command history list num CommandTen One!!executes the
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
Linux Command-line edit shortcut: History displays a list of command histories ↑ (Ctrl+p) Displays the previous command ↓ (Ctrl+N) Displays the next command!num executes the command history list of the num-bar command!! Execute the last command!?
Linux command line edit shortcut keys:History 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 previous command!?
Skilled use of shortcut keys can be greatly improved efficiency, the following list some of the commonly used shortcut key commands for easy access at any time1. Move the cursorCtrl + A moves to the beginning of the line. It can be used in most text
From:http://hi.baidu.com/jorling/blog/item/13db7bec1c38a1d32e2e21d3.html
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
This article describes the common shortcut keys for Linux command-line editing, which I hope will help you.Linux Command line edit shortcut keys:History displays a list of command histories↑ (ctrl+p) Show previous command↓ (CTRL + N) Displays the
Linux Command-line edit shortcut: History displays a list of command histories ↑ (Ctrl+p) Displays the previous command ↓ (Ctrl+N) Display the next command!Num executes the command history list num Command!!executes the previous
This is a tip for managing disk storage zones in Linux. Many friends often ask me about this. Today I will summarize this, this section describes how to manage disks in Linux based on the principle of Linux-specific swap partitions.
Principles
1.
This article describes the common shortcut keys for Linux command-line editing, which I hope will help you.Linux Command line edit shortcut keys:History displays a list of command histories↑ (ctrl+p) Show previous command↓ (CTRL + N) Displays the
This is a tip for managing disk storage zones in Linux. Many friends often ask me about this. Today I will summarize this, starting from the principle of Linux-specific swap partitions, this article introduces how to manage disk technology in Linux:
Http://www.understudy.net/custom.html
Description
CSH *
Ksh
Bash
Tcsh *
Zsh
Current working directory
$ CWD
$ Pwd
\ W
%/
%/
Current working directory, with one's home directory '~ '
$ CWD:
By default, Ubuntu kernel outputs the complete path. When the path name is long, the prompt method is unfriendly. Modify the settings of the PS1 variable by following these steps to allow the terminal to output the relative path. Similar to the Red
Q: How can I change the shell display mode to [complete working directory of username @ host] $ to [last working directory of username @ host] $
Solution: Add export PS1 = '[/u @/h/W]/$' to. bashrc'
Note:
In Linux, there are two variables for the
ByVivek GITEOn October 16,200 7 ·23 comments
Q. I'm new to Linux and installed centos on my laptop. How do I create a file from Bash prompt without using GUI tools?
A.Linux/Unix offer commands line tools and text editors for creating text files.
I saw a command line prompt from my colleagues on my system (Linux), which had a color and smiling face.
I think it's cool, and I also copied it,
Display Policy: current user, time, current directory,
If a common user displays a smiling face,
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.