Recently used Linux commands

Source: Internet
Author: User

Scp-r/home/space/music/[Email protected]:/home/root/others/remote server copy file

Copy from remote to local

SCP [Email protected]/

LS-LHT will list the size of all files in the current directory and the sum of all file sizes.

DF-LH Disk Size

Rpm-i The package file name that needs to be installed

Examples are as follows:

Rpm-i example.rpm installation example.rpm package;

Rpm-iv example.rpm installs the example.rpm package and displays the file information that is being installed during the installation process;

RPM-IVH example.rpm installs the example.rpm package and displays the file information and installation progress during the installation process;

LS |wc-l View the number of files in the directory

Find. -name "*.jpg" > PictureName.txt gets the file name ending in. jpg in the current directory and outputting it to the PictureName.txt file

Ps-ef|grep java Viewing process

Netstat-an | grep 11188

Chown-r Root. Recursively change the current directory ownership to root

Package all files and folders under this directory as in the current directory/home/blinux/html/


Root User Execution NETSTAT-NTUPL

n indicates that DNS is not queried

T represents the TCP protocol

U means UDP protocol

P indicates that the query occupies a program L indicates that the query is listening to the program

# # #或 # # #

Lsof-i: 8000 Query 8000 port running program

Free-m Linux View memory size

Mount NFS (Mount remote data to local)

Recently used Linux commands

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: 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.