Shell directive (i)

Source: Internet
Author: User
Tags string back

    1. Ubuntu Desktop window into the Shell window: Ctrl + ALT + F2~f6; Exit Shell window: Ctrl + ALT + F7; Enter UI Command window from UI, Ctrl + Alt +t
    2. Shell Instruction Basic Format

-command name [options] < parameter 1>< parameter 2>

-For example: detailed listing of all files in directory/home

[[email protected] hostname]# LS-AL/HOME-->UBUNTU Real statement: [Email protected]:~$ ls-al/home

[[email protected] hostname]#: a command prompt that usually ends with a ' # ' symbol indicates that the user of the shell is the root user

[Login name @ hostname]$: a command prompt that usually ends with a ' $ ' sign indicates that the user of the shell is a user other than root

' # ' and ' $ ' are shell prompts that can be customized

' ls ' is an order

'-al ' is an option

'/home ' is a parameter

Separated by a space

-Automatic completion and history: When you enter a shell command, a file name, or a few letters at the beginning of a directory name, if you press the TAB key, the shell automatically queries for matching items, automatically completing them, and improving programming efficiency.

The shell can automatically memorize the input commands, press the UP and DOWN ARROW keys to select the commands you have entered.

3. Online Help command

-man [[email protected] hostname] #man fdisk displays an explanation of the command fdisk is a shell command

-info [[email protected] hostname] #info fdisk is also a description of the shell instructions, and the relationship to man is two sets, but there is an intersection

-help [[email protected] hostname] #fdisk How the command works by--help query command options

4. Small experiments

-Use the shell command "LS/" to view the contents of the root directory

-sudo Apt-get * * *

-ctri + C exits the current process

-echo

Usage: echo [short options] ...  [String] ... Or: The Echo long option echoes the STRING back to standard output.

-n do not trailing line breaks

-e enable escape function to interpret backslashes

-e disables the escape function that interprets backslashes (default)

--HELP Display this help message and exit

--version display version information and exit

If-e is available, the following sequence is recognized:

\ \ counter Slash

\a Ring Ring

\b Backspace

\c no longer produces new output

\e Escape character

\f Page Change

\ n New Line

\ r Enter

\ t Horizontal tab

\v Vertical Tab

\0nnn bytes are expressed in octal NNN (1 to 3 bits)

\xhh bytes in hexadecimal number HH (1 to 2 bits)

http://blog.csdn.net/xukai871105/article/details/35834703

      

Shell directive (i)

Related Article

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.