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: 131407 | 47 Comments »

How to list just directories

September 19th, 2007 mysurface

There are no such direct ways to list only directories using the UNIX/ linux famous command ls. Anyway with command combo’s, we can achieve the goal in two ways shown as below. 1. use ls -l with grep 2. use find -type d ( The statement above is WRONG, check out the simple way to […]

Posted in Bash, column, find, grep, ls, Text Manipulation | Hits: 144705 | 15 Comments »

arrange your text nicely with column

August 17th, 2006 mysurface

Try to cat /etc/group, you will find the output text is showing name:x:id: …, which list of groups is separate by : To separate it nicely by columns, you can do that: cat /etc/group | column -t -s”:” Related Postsarray and for loop in awkgrep is always a useful tools to help analyze logs. When […]

Posted in column, pipeline, Text Manipulation | Hits: 39366 | 1 Comment »