Linux Common Commands

Source: Internet
Author: User

1.Linux SSH Login Command

See ssh-h directly, in fact, there are instructions

such as Ssh-l user name-p port number IP address

 at 10.103. 246.39

2.Linux Search Command

2.1 Find

Find is the most common and powerful look-up command you can use to find any file you're looking for.

Find uses the following format:

  $ find < Specify directory > < specify conditions > < specify Actions >

-< specified directory;: the directory to be searched and all its subdirectories. The current directory is assumed by default.

-< specified conditions;: The characteristics of the file to be searched.

-< specify actions;: Specific processing of search results.

If no parameters are added, find searches the current directory and its subdirectories by default, and does not filter any results (that is, all files are returned) and displays them all on the screen.

Examples of use of find:

  $ find. -name ' my* '

Searches the current directory (with subdirectories, below), with all files with the file name beginning with my. The middle dot indicates the current directory.

  $ find. -name ' my* '-ls

Searches the current directory for all file names that begin with my, and displays their details.

  $ find. -type f-mmin-10

Searches the current directory for all the normal files that have been updated in the last 10 minutes. If you do not add the-type f parameter, search for normal files + special files + directories.

Linux Common Commands

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.