SHLVL – Incremented by one each time an instance of bash is started

commandline session $ 4.2.36 2 501—> echo $SHLVL 1 $ 4.2.36 3 502—> echo $SHLVL 1 $ 4.2.36 4 503—> bash $ 4.2.36 1 500—> echo $SHLVL 2 $ 4.2.36 2 501—> logout bash: logout: not login shell: use `exit’ $ 4.2.36 3 502—> exit exit $ 4.2.36 5 504—> echo $SHLVL 1 $ 4.2.36 …

BASH_VERSINFO A readonly array variable

commandline session $ 4.2.36 2 501—> echo BASH_VERSINFO[0] BASH_VERSINFO[0] $ 4.2.36 3 502—> echo $BASH_VERSINFO[0] 4[0] $ 4.2.36 4 503—> echo $BASH_VERSINFO 4 $ 4.2.36 5 504—> echo $BASH_VERSINFO[1] 4[1] $ 4.2.36 6 505—> echo BASH_VERSINFO[1] BASH_VERSINFO[1] $ 4.2.36 7 506—> echo “BASH_VERSINFO[1]” BASH_VERSINFO[1] $ 4.2.36 8 507—> echo BASH_VERSINFO(1) bash: syntax error near unexpected …

sar – Collect, report, or save system activity information

commandline session $ 4.2.36 24 220—> sar -b 1 3 Linux 3.2.0-3-amd64 (debian) Saturday 29 September 2012 _x86_64_ (1 CPU) 01:22:03 IST tps rtps wtps bread/s bwrtn/s 01:22:04 IST 0.00 0.00 0.00 0.00 0.00 01:22:05 IST 0.00 0.00 0.00 0.00 0.00 01:22:06 IST 5.21 0.00 5.21 0.00 2541.67 Average: 1.71 0.00 1.71 0.00 832.76 $ …

tcpdump not port 80

commandline session root@debian:~# tcpdump -i wlan0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on wlan0, link-type EN10MB (Ethernet), capture size 100535 bytes 23:33:46.824172 IP debian.local.48247 > mars.infoclub.in.http: Flags [S], seq 1276297543, win 14600, options [mss 1460,sackOK,TS val 4098743 ecr 0,nop,wscale 5], length 0 23:33:46.826612 IP debian.local.41745 > 192.168.0.1.domain: 43954+ …

backup

.righthalf { position:relative; left:51%; top:10.1%; } Work Style I 1. Get Topic From The Community 2. Select Easy Or Interested Area From The Topic 3. Play With It. 4. Organize. 5. Make Connection Between Works(Posts) To Make A Beautiful Work. Work Style II 1. Topic Selected By Us using Feedback. 2. Select Easy Or Interested …

semantic patch using coccinelle

commandline session $ 4.2.36 26 525—> cat source.c #include int main(int argc, char *argv[]) { unsigned int bytes = 1024 * 1024; char *buf; /* allocate memory */ buf = alloca(bytes); return 0; } $ 4.2.36 27 526—> cat source.cocci @@ expression E; @@ -alloca(E) +malloc(E) $ 4.2.36 28 527—> spatch –sp-file source.cocci source.c init_defs_builtins: …