Common Linux Operations

Source: Internet
Author: User

Gdbserver host:10000--attach ' ps x|grep 4.1.4.1|sed-n ' 1p ' |awk ' {print $} '

Tail-f 61_debug201611020000001

3. kill multiple Process

Pkill-9 +processname

Start Time How long it takes to run .

Ps-eo Pid,lstart,etime | grep 5176

Gdb

Objdump-d-S DBB >test.txt

    1. Add File directory DIR
    2. List + croute_func.cpp:1321

Debug

Bt

F- Toggle the current stack to the specified layer

Info Locals show all current local variables

C

N F10

SETP F11

Until

Finish Exit Function

Setting Parameters

Set args

Display Array

P * [email protected]_len

Bash

http://www.ibm.com/developerworks/cn/linux/l-cn-shell-debug/

http://blog.csdn.net/yfkiss/article/details/8636758

Which ports the query process occupies

LSOF-I[46] [protocol][@hostname |hostaddr][:service|port]
---IPV4 or IPV6
Protocol---TCP or UDP
Hostname-Internet Host name
HOSTADDR-IPV4 Address
Service name in service---/etc/service (can be more than one)
Port-and port number (can be more than one)

Lsof-i 4|grep 192*

Netstat-apn|grep Proxy|grep 192*

////////////////////

Memory : free–m/-h

    • actual memory consumption: used-buffers-cached namely total-free-buffers-cached
      • actual available Memory: Buffers+cached+free

    • -buffers/cache Memory:( equal to used-buffers-cached of line 1 )
      • +buffers/cache Memory : + ( equals 1 lines of free + buffers + cached)

The visible -buffers/cache reflects the memory that is actually eaten by the program, and +buffers/cache reflects the total amount of memory that can be appropriated .

vim//

Ctrl+e\y scroll up \ down one line

ctrl+b\f up \ down one screen this is more practical, remember

J page up and down

Common Linux Operations

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.