commandline session $cat bash.txt hack hacker $head bash.txt hack hacker $head -n 1 bash.txt hack $head -n 2 bash.txt hack hacker $head -n 3 bash.txt hack hacker $head -v -n 1 bash.txt ==> bash.txt bash.txt <== hack hacker $ http://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html $ head -n 1 qsort.c #include $ head -n 2 qsort.c #include $ head -n …
Author Archives: jeffrin
hung_task_timeout_secs( topic related to linux kernel hangup )
ABOUT hung_task_timeout_secs if a task(process) is hung then hung_task_timeout_secs value decides if the hung task needs no reboot or reboot after n seconds LINUX KERNEL RELATED PARAMETER$cat /proc/sys/kernel/hung_task_timeout_secs120$ $echo 0 | sudo tee –append /proc/sys/kernel/ hung_task_timeout_secs0$sudo cat /proc/sys/kernel/hung_task_timeout_secs0$ When a task in D state did not get scheduled for more thanthis value report a warning.This …
Continue reading “hung_task_timeout_secs( topic related to linux kernel hangup )”
GET THE HANG bundle install
$sudo bundle install Fetching gem metadata from https://rubygems.org/…….. Fetching gem metadata from https://rubygems.org/.. Resolving dependencies… Using rake (0.9.2.2) Installing RedCloth (4.2.9) Installing chunky_png (1.2.5) Installing fast-stemmer (1.0.1) Installing classifier (1.3.3) Installing fssm (0.2.9) Installing sass (3.2.9) Installing compass (0.12.2) Installing directory_watcher (1.4.1) Installing haml (3.1.7) Installing kramdown (0.13.8) Installing liquid (2.3.0) Installing syntax (1.0.0) Installing …
getopt . more on parse command options
commandline session $getopt hello — $getopt helloo — $getopt hellooo — $getopt hellooo how — how $getopt hellooo how are — how are $getopt h how are — how are $getopt h h h — h h $getopt ab -a -a — $getopt ab -ab -a -b — $getopt ab -ab -R getopt: invalid option …
ypdomainname . more on this
TYPICAL COMMANDLINE SESSION RELATED [bash] $ypdomainname ypdomainname: Local domain name not set $ypdomainname -A debian.local $ypdomainname -a debian $ypdomainname -i 127.0.1.1 $ [/bash]
vmstat . more on virtual memory statistics
commandline session $vmstat -s 1995396 K total memory 1197836 K used memory 599976 K active memory 483048 K inactive memory 797560 K free memory 49620 K buffer memory 648028 K swap cache 5843964 K total swap 0 K used swap 5843964 K free swap 261891 non-nice user cpu ticks 534 nice user cpu ticks 68515 …
Continue reading “vmstat . more on virtual memory statistics”
stat . more from stat command
commandline session $ls store store1 $pwd /home/jeffrin/Test $stat store File: ‘store’ Size: 19 Blocks: 8 IO Block: 4096 regular file Device: 801h/2049d Inode: 7036935 Links: 1 Access: (0644/-rw-r–r–) Uid: ( 1000/ jeffrin) Gid: ( 1000/ jeffrin) Access: 2013-06-29 18:37:33.000000000 +0530 Modify: 2013-06-29 18:37:30.000000000 +0530 Change: 2013-06-29 18:37:30.000000000 +0530 Birth: – $stat -f store File: “store” …
tee . using examples
commandline session $ls | tee $ls -l | tee total 0 $pwd | tee /home/jeffrin/Test $pwd /home/jeffrin/Test $pwd | tee store /home/jeffrin/Test $cat store /home/jeffrin/Test $pwd > store1 $cat store1 /home/jeffrin/Test $ http://pluto.infoclub.in/wp-content/uploads/2013/06/tee.c
free . low and high memory statistics
$free -lh total used free shared buffers cached Mem: 1.9G 1.8G 80M 0B 343M 449M Low: 1.9G 1.8G 80M High: 0B 0B 0B -/+ buffers/cache: 1.0G 873M Swap: 5.6G 348K 5.6G $
nc netcat
commandline session $nc 127.0.0.1 25 220 debian.Jeff ESMTP Exim 4.80 Thu, 27 Jun 2013 00:05:20 +0530 ^C $nc gnu.org no port[s] to connect to $nc gnu.org 25 ^C $nc -g gnu.org 25 no port[s] to connect to $nc -g gnu.org gnu.org 25 ^C $nc -g 127.0.0.1 127.0.0.1 25 ^C $nc www.youtube.com no port[s] to connect …