TEE . read from standard input and write to standard output and files

commandline session $stat version.c File: `version.c’ Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 801h/2049d Inode: 5415089 Links: 1 Access: (0644/-rw-r–r–) Uid: ( 1000/ jeffrin) Gid: ( 1000/ jeffrin) Access: 2013-01-07 19:05:13.000000000 +0530 Modify: 2013-01-07 21:55:50.000000000 +0530 Change: 2013-01-07 21:55:50.000000000 +0530 Birth: – $stat version.c | tee newversion.c File: `version.c’ Size: 0 …

TCPDUMP . PRINT LESS PROTOCOL INFORMATION . OUTPUT LINES SHORTER

$sudo /usr/sbin/tcpdump -q tcpdump: WARNING: eth0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 100535 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel $sudo /usr/sbin/tcpdump -q -i wlan0 tcpdump: verbose output suppressed, …

UPGRADE A PACKAGE AND IT'S DEPENDENCIES USING APT-GET

root@debian:~# apt-get install $(apt-cache depends gnome-session | grep Depends | sed “s/.*ends: //” | tr ‘n’ ‘ ‘) Reading package lists… Done Building dependency tree Reading state information… Done gnome-session-bin is already the newest version. gnome-session-bin set to manually installed. gnome-session-common is already the newest version. gnome-session-common set to manually installed. The following extra packages …

GDB BACKTRACE GOOGLE CHROME SEGFAULT

$gdb /opt/google/chrome/google-chrome core GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This GDB was …

what is tcp_retrans_collapse – BOOLEAN ?

ABOUT tcp_retrans_collapse This variable implements a bug in the TCP protocol so it will be able to talk to certain other buggy TCP stacks. Without implementing this bug in the TCP stack, we would be unable to talk to certain printers that has this bug built in. This bug makes the TCP stack try to …

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 …