1. command line editing function ctrl + a: Jump to the beginning of the line ctrl + e: jump to the end of the line ctrl + u: Delete the content from the cursor to the beginning of the line ctrl + k; delete the content from the cursor to the end of the line ctrl + arrow: one word jump left or right at a time 2. File Name wildcard *: any characters of any length? : Any single character (only match one character) []; matches specified range 1,
CommandRow editing
C
TrL + a: Jump to the beginning of the line
Ctrl + e: jump to the end of the row
Ctrl + u: Delete the content from the cursor to the beginning of the line
Ctrl + k; Delete the content from the cursor to the end of the line
Ctrl + arrow
2. wildcard file name
*: Any character of any length
? : Any single character (only match one character)
[]; Match any single character in the specified range, such as [a-z], [abc], [^ AB
Cd] Except for the abcd
[: Keyword:]
Use man 7 glob to View Details
Eg:
Keyword includes [: lower:] Any lowercase letter [: upper:] Any uppercase letter [: alpha:] Any letter [: pu
NcT:] match any punctuation marks
[: Space:] space [:
LnUm:] match any letter [: di
Git:] Number [: blank:] space and tab key
[: Xdigit:] matches any hexadecimal number
Eg:
Ls/Etc/[[: lower:] [[: degit:] * // display the file with lowercase letters under etc and any matching length with a number
3. Command Line completion and path completion
Command Line completion: find in the echo $ PATH output PATH
Path completion: search in the specified parent directory
4. Expand the command line
~ : Expand to the Home Directory of the corresponding user
{} Create multiple files or directories
Mkdir-Pv x/{y, z/{1, 2 }}
Mkdir-pv {x, y }_{ 1, 2} mkdir-pv myroot/{, etc/{, rc. d, init. d}, usr/{, local}, var, sys, mnt, m
EdIa, lib, boot/{, grub }}
5. Command Extension
$ (): Command reference eg: mkdir $ (
Date"+ % Y-% m-% d-% H-% M-% S ")
''Eg: ls-l'
WhichPasswd`
File'
Cat/Etc/shells 'or file $ (cat/etc/shells)
TouchA \ * B a \ B \ $ AB \? B can create a * B, a B, $ AB,? Four files B
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.