head – output the first part of files

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 …

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 …

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 …

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 …

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” …