Live Chat!

what is your 10 common linux commands?

4 votos Vota!!

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 command. [...]

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

How to list just directories

2 votos Vota!!

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 list just directories [...]

Posted in Bash, Text Manipulation, column, find, grep, ls | Hits: 42797 | 9 Comments »

arrange your text nicely with column

2 votos Vota!!

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 the logs are [...]

Posted in Text Manipulation, column, pipeline | Hits: 7591 | No Comments »