Linux Learning Essay Seven

Source: Internet
Author: User
Tags aliases clear screen

Features of this Learning bash


Bash and its features:

Shell: Shell

GUI Gnome KDE XFCE

Shell types: CLI sh csh ksh bash tcsh zsh

Process: From each process it appears that only the kernel and the current process exist on the current host. A process is a copy of a program, and a process is a program execution instance

Bash Features:

1. Command history, Command completion

2, Pipeline, redirect

3. Command aliases

4. Command line editing

5. Command line expansion

6. File name Wildcard

7. Variables

8. Programming


command-line editing:

Cursor Jump: Ctrl +a header, CTRL +e end of line

Ctrl+u Delete the cursor to the beginning of the command line

Ctrl+k Delete the cursor to the end of the command line

CTRL + direction left and right remote terminal does not support character jumps

Ctrl+l Clear Screen


Command history:

View command history: Historical

-C: Empty command history

-d:offset [n] Delete the specified location command

History-d 510 3 is to delete three rows from 510

-W: Save the Command history to the history file


Environment variables:

Path: Command Search Path

Histsize: Command history buffer size

echo $HISTSIZE Query buffering

The use of command history tips:

! N: the nth command that executes the command history

! -N: Executes the last nth command in the command history

!! : Executes the previous command

! String: The most recent command in the command history that starts with the specified string

! $: Reference the last parameter of the previous command

ESC + Direction

ALT + Direction
Two command terminals not supported, local only


Command completion:

Path:tab Key

Path Completion: Tab key

Command completion: Search the PATH environment variable specified by each of the paths given by our own string at the beginning of the executable file, if the extra one, two times tab, you can give the list, otherwise it will be directly complete.

Path completion: Searches for each filename under the starting path we give, and tries to complement it.


Command aliases:

Alias (alias) cmdalias= ' COMMAND [options] [arguments]

Example: Alias Cls=clear

The definition alias is valid only for the current life cycle, and the valid range of aliases is the current shell process.

Alias: List all aliases

Ualias Cmdalias

Example: Ualias CLS

\cmd


Linux Learning Essay Seven

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.