Alok's Blog

Play With Commands

gunzip Command

* without decompressing any file, read the file and count the line number

$gunzip -c xyz.gz | grep “/srting/” | wc -l

ping Command
 ping any address 1800 kb packet size count number 200 and take it is a file, at the same time u can read the out put
$ping -s 1800 -c 200 >> ping_report | tail -f ping_report
find Command
* to find a file
$find / -name file_name 
$find / -name ‘*.doc’

du Command

To print the diectory summary

$ du – sh

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: