Linux Base Command Collection

Source: Internet
Author: User

One,CD switch directory

1 Full Name: Change Directory

2 Usage:

Cd

CD ~: Back to home directory

CD ~username: Back to USERNAME's home directory

CD-: Switch directly between the previous directory and the current directory


Second,pwd Displays the current absolute path

1 Full Name: Print working directory


Iii. The history of Bash features

1 The number of saved bars is determined by the environment variable Histsize

2 Permanent save location for user exit: determined by the environment variable histfile, usually in the user's home directory. Bash_history

Maximum number of this file can be saved: determined by the environment variable Histfilesize

3 usage

History N: Displays the nearest n, including the current command itself;

History-c: Emptying the command history;

history-d offset: Deletes the command entry at the specified offset;

History-a [/path/to/somewhere]: Writes a history entry in the current session to the specified file.

4 Call History command

! N: Executes the nth command in the command;

!: Executes the previous command;

!string: Executes the last command in a command that starts with a string;

!$: Invokes the last parameter of the previous command;

ESE,.: Ibid.


Iv.Ctrl + C to terminate the execution of the current command


LS Displays the file in the current directory

-a displays include. and. All the files

-A does not show hidden files

-L


Help

1 built-in Commands help command

2 external commands

COMMAND--help

Man: Manual Manual

A There are chapters, General 1-9 chapters, man [#] COMMAND

b See which chapters of the command are helpful: Whatis command

C Manual paragraph:

Name: command names;

DESCRIPTION: A detailed description of the command function

Options: All option

Synopsis: Using formats

EXAMPLES: Example

See ALSO: Other manuals available

Format substring in D Help

[]: Can be omitted

<>: not omitted

| : Two select one or more

...: Similar content can appear multiple

e How to use

Flip Screen

This article is from the "Squirrel" blog, please be sure to keep this source http://apinetree.blog.51cto.com/714152/1651519

Linux Base Command Collection

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.