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
- Add File directory DIR
- 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