Top Ten Processes Watcher

July 13th, 2008 mysurface

top command provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel. But if you want get something more specific, you must play some tricks on it. For example, I want a clean view of top […]

Posted in head, tail, top, watch | Hits: 143373 | 7 Comments »

what is your 10 common linux commands?

October 27th, 2007 mysurface

Dear command line ninjas, Mr CLI and keyboard pianist: What is your regular command you use? I am sure you must thinking of ls and cd. Yeah, they are common for every users, but how about the rest of them? I have construct a combos of commands to help you identify your top ten linux […]

Posted in awk, column, Common, grep, head, history, nl, sort | Hits: 105810 | 45 Comments »

head and tail

November 1st, 2006 toydi

Given a list of text lines in a file, to display the first 10 lines: head foo.txt To display the last 10 lines: tail foo.txt Try -n option to specify the number of lines to display: tail -n3 foo.txt # the last 3 lines head -n4 foo.txt # the first 4 lines And don’t forget, […]

Posted in head, tail, Text Manipulation | Hits: 136728 | 11 Comments »