Linux Common commands

Source: Internet
Author: User

System Management

Ps-ef Viewing processes

NETSTAT-LPN | grep port to see if the port number is occupied

:%s/src/dst/g//VI Global replace% global s replace g that line multiple all replace

///vi search function

YY NP//vi copy n rows, if you copy a row do not need n

LS-LT//By time from near to far ls-ltr//by time from far to near

Find-name filename

How PS Displays the process list title

Gdb-p PID//Mounts to a running process for debugging

Date [email protected] "time (NULL)"//convert timestamp to standard format

Date-d "1970-01-01 UTC 1279592730 Seconds"

Date-d "2015-04-24 17:58:30" +%s//Convert standard format to timestamp

Date Date +%s//Display the current time in timestamp and standard format, respectively

Killall-2 Signal-9 strong kill

Ipcrm-m IPCS | Head??

Ntpdate 210.72.145.44//Calibration system time, the IP is the National Timing Center

SCP [Email Protected]:/usr/bin/telnet/usr/bin

SSH-based login to replicate data links between two hosts

ll/proc/26051

Grep-r ' Strings ' *//recursive lookup of strings in a file

Tar ZCVF DST RES//Compression tar ZXVF RES//Decompression

Ls-l |grep "^-" |wc-l view the number of files in the current directory

Reference URL:

1.http://www.jb51.net/linux/

2.http://man.linuxde.net/

3.http://www.cnblogs.com/laov/p/3541414.html

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.