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: 89917 | 40 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: 101094 | 12 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: 27707 | 1 Comment »