Common commands and time file management

Source: Internet
Author: User
Commands include internal commands and external commands. the command format is case sensitive. internal Command: Command Prompt. There is no external command corresponding to the executable binary file in a shell. The command format is executable: # command [options] [arguments] [options]: parameters for executing the conversion command: 1,

Command:

Commands are divided into: Internal commands and external commands. \ 'command formats are strictly case sensitive \'.

Internal Command: Command Prompt. There is no executable binary file corresponding to a shell.

External command: an executable binary file is available.

Format: # command [options] [arguments]

[Options]: conversion Command Execution Method

Parameters: 1. Short options:-l,-h,-lh 2. long Options: -- help, -- long (documentary word)

[Arguments]: target object of the command

 

 Which: View the command location

Type: view the command type

History: View command history

! N: run the nth command.

! + (String): Indicates executing the latest command starting with this string.

!! : Execute the previous command

! -N: Execute the nth command.

! $: Reference the last parameter of the previous command.

Common commands:

Cd: Change Directory switch to the current user's home Directory without any parameters

 Pwd: Printing Working Directory: displays the Working Directory

Cd-Indicates switching between the current directory in the previous directory

Cd ~ Switch student to the student's home directory

Cd... cut to parent directory

Ls: Parameter ::

-L displays the file details.

-H: easy to read.

-A: All files are displayed.

-A does not display the "." "..." directory.

-D: displays the directory attributes.-r is sorted in reverse order.-R recursively displays the files in each subdirectory.

 

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.