free – Display amount of free and used memory in the system

commandline session $free -m -c 10 -s 10 total used free shared buffers cached Mem: 1948 1816 131 0 105 536 -/+ buffers/cache: 1175 773 Swap: 5706 19 5687 total used free shared buffers cached Mem: 1948 1816 131 0 105 536 -/+ buffers/cache: 1175 773 Swap: 5706 19 5687 total used free shared buffers …

xargs AND cd WITH MORE MANIPULATION

ABOUT xargs xargs is a command on Unix and most Unix-like operating systems used to build and execute commands from standard input. It converts input from standard input into arguments to a command. Some commands such as grep and awk can take input either as command-line arguments or from the standard input. However, others such …

How to make tcpdump output without address to name conversion ?

ABOUT tcpdump tcpdump is a common packet analyzer that runs under the command line. It allows the user to display TCP/IP and other packets being transmitted or received over a network to which the computer is attached.[3] Distributed under the BSD license,[4] tcpdump is free software. Tcpdump works on most Unix-like operating systems: Linux, Solaris, …

grep prints the matching lines – First Character ^

$ 4.2.36 7 507—> grep ^S resume.txt Self Study and Consulting. Software Engineer. Sri Ramakrishna Engineering College, 1996-2000 $ 4.2.36 8 508—> grep ^A resume.txt August 2007 to present. Address: 12/214C Papali Road Vazhakkala. Kakkanad West. $ 4.2.36 9 509—> grep ^J resume.txt July 2005 – June 2007 $ 4.2.36 10 510—> grep ^N resume.txt …

REGULAR EXPRESSION WITH GREP – DOT

grep searches the named input FILEs (or standard input if no files are named, or if a single hyphen-minus (-) is given as file name) for lines containing a match to the given PATTERN. By default, grep prints the matching lines. commandline session $ cat first.txt name-jeffrin Age-35 Sex-Male $ grep 3. first.txt Age-35 $ …

google chrome HANGUP .BACKTRACE

commandline session (gdb) bt #0  0x00007fd461dbeac3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=100) at ../sysdeps/unix/sysv/linux/poll.c:87 #1  0x00007fd46643f4d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2  0x00007fd46643f5f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3  0x00007fd468940c00 in ?? () #4  0x00007fd468918832 in ?? () #5  0x00007fd4686349ff in ?? () #6  0x00007fd46a2e8811 in ?? () #7  0x00007fd46a2ea31d in ?? () #8  …

pstree command in linux I

Commandline Session $pstree -pA init(1)-+-/usr/sbin/apach(2306)-+-/usr/sbin/apach(4451) |                       |-/usr/sbin/apach(4452) |                       |-/usr/sbin/apach(4453) |                       |-/usr/sbin/apach(4454) |                       `-/usr/sbin/apach(4455) |-NetworkManager(2145)-+-dhclient(4539) |                      |-{NetworkManager}(2196) |                      `-{NetworkManager}(4540) |-accounts-daemon(2233)—{accounts-daemon}(2235) |-at-spi-bus-laun(3756)-+-dbus-daemon(3761) |                       |-{at-spi-bus-laun}(3758) |                       |-{at-spi-bus-laun}(3760) |                       `-{at-spi-bus-laun}(3762) |-at-spi2-registr(3764)—{at-spi2-registr}(37100) |-atd(2334) |-atop(2361) |-avahi-daemon(2372)—avahi-daemon(2373) |-bluetoothd(2399) |-colord(3919)—{colord}(3928) |-colord-sane(3931)-+-{colord-sane}(3935) |                   `-{colord-sane}(4015) |-console-kit-dae(2237)-+-{console-kit-dae}(2238) |                       |-{console-kit-dae}(2239) |                       |-{console-kit-dae}(2240) |                       |-{console-kit-dae}(2241) |                       |-{console-kit-dae}(2242) |                       |-{console-kit-dae}(2243) |                       |-{console-kit-dae}(2244) |                       |-{console-kit-dae}(2245) |                       |-{console-kit-dae}(2246) |                       |-{console-kit-dae}(2247) |                       …

regular expression — PHP

commandline session <?php $text = “Hello World”; if ( preg_match( “/r.*?d/”, $text, $array ) ) { print “<pre>n”; print_r( $array ); print “</pre>n”; } ?> note: preg_match — Perform a regular expression match source : www.phpcode.net OUTPUT $ 4.2.36 13 513—> php rep.php PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525/suhosin.so’ – /usr/lib/php5/20100525/suhosin.so: …