Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

Chronometer in hour format

Terminal - Chronometer in hour format
stf=$(date +%s.%N);st=${stf/.*/};sn=%{stf/*./};for ((;;));do ctf=$( date +%s.%N );ct=${ctf/.*/};cn=${ctf/*./}; dtf=$(echo "scale=3; $ctf-$stf" | bc); dt=${dtf/.*/}; dt=${dt:=0};echo -en "\r$(date -u -d @$dt "+%H:%M:%S.${dtf/*./}")";done
2017-01-26 13:42:53
User: glaudiston
Functions: date echo
0
Chronometer in hour format

Just add a format to chronometer in bash

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
stf=$(date +%s.%N);for ((;;));do ctf=$( date +%s.%N );echo -en "\r$(date -u -d "0 $ctf sec - $stf sec" "+%H:%M:%S.%N")";done
2017-01-26 14:31:33
User: glaudiston
Functions: date echo
Tags: chronometer
3

Shorter and faster...

NUM=-1; while NUM=`echo $NUM + 1 | bc`; do echo $NUM && sleep 1; done
2014-06-07 20:48:45
User: tomivs
Functions: echo sleep
0

Chronometer using the bc calculator.

stf=$(date +%s.%N);st=${stf/.*/};sn=%{stf/*./};for ((;;));do ctf=$( date +%s.%N );ct=${ctf/.*/};cn=${ctf/*./}; echo -en "\r$(echo "scale=3; $ctf-$stf" | bc)";done
2017-01-26 13:20:30
User: glaudiston
Functions: date echo
Tags: chronometer
0

A way for tracking times in bash

Know a better way?

If you can do better, submit your command here.

What others think

http://baoholaodongyknb.com/quan-ao-bao-ho-lao-dong-cao-cap/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-cao-cap/

http://baoholaodongyknb.com/kinh-bao-ho-lao-dong-cao-cap/

http://baoholaodongyknb.com/giay-bao-ho-lao-dong-tai-ha-noi/

http://baoholaodongyknb.com/ao-phan-quang/

http://baoholaodongyknb.com/ao-phong-dong-phuc/

http://baoholaodongyknb.com/giay-bao-ho-lao-dong-jogger-jumper-s3/

http://baoholaodongyknb.com/kinh-bao-ho-lao-dong-an-toan-proguard-46bs/

http://baoholaodongyknb.com/giay-bao-ho-lao-dong-jogger-bestboy/

http://baoholaodongyknb.com/kinh-bao-ho-lao-dong-an-toan-double-shield/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-rong-vanh-han-quoc/

http://baoholaodongyknb.com/tac-dung-cua-quan-ao-bao-ho-lao-dong/

http://baoholaodongyknb.com/giay-bao-ho-lao-dong-treksta-han-quoc/

http://baoholaodongyknb.com/quan-ao-bao-ho-lao-dong-kaki-ben-dep/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-malaysia-eph-33pl/

http://baoholaodongyknb.com/quan-ao-bao-ho-lao-dong-vai-pangrim-han-quoc/

http://baoholaodongyknb.com/quan-ao-bao-ho-lao-dong-cho-nganh-dien-luc/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-sstop-han-quoc/

http://baoholaodongyknb.com/ao-phong-dong-phuc-kieu-ao-khoac-gio/

http://baoholaodongyknb.com/quan-ao-bao-ho-lao-dong-ao-lien-quan/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-han-quoc-kukye-mau-trang/

http://baoholaodongyknb.com/kinh-bao-ho-lao-dong-an-toan-sperian-trang-bac-a800/

http://baoholaodongyknb.com/kinh-bao-ho-lao-dong-thoi-trang-flygend-mau-hong-do/

http://baoholaodongyknb.com/mua-giay-bao-ho-lao-dong-o-dau/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-han-quoc-sseda-mau-trang/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-nhat-quang-co-num-van/

http://baoholaodongyknb.com/giay-bao-ho-lao-dong-k303-han-quoc/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-toyo-nhat-ban/

http://baoholaodongyknb.com/mu-bao-ho-lao-dong-3m/

http://baoholaodongyknb.com/quan-ao-bao-ho-lao-dong-mau-xanh-cho-cong-nhan/

http://ketsatcaocap.vn

http://ketsatcaocap.vn/san-pham/ket-sat-chong-chay

http://ketsatcaocap.vn/san-pham/ket-an-toan

http://ketsatcaocap.vn/san-pham/ket-sat-khach-san

http://ketsatcaocap.vn/san-pham/ket-sat-van-phong

http://ketsatcaocap.vn/san-pham/ket-sat-van-tay-cao-cap

http://ketsatcaocap.vn/san-pham/ket-sat-canh-duc-cao-cap

http://khodadep.com/da-hoa-cuong-cao-cap-40.html

http://khodadep.com/da-op-lat-granite-50.html

http://khodadep.com/da-op-bep-granite-51.html

http://khodadep.com/da-hoa-cuong-cao-cap/da-hoa-cuong-mau-nau-den-026-15.html

http://khodadep.com/da-hoa-cuong-cao-cap/da-hoa-cuong-cao-cap-mau-vang-anh-quoc-513.html

http://khodadep.com/da-hoa-cuong-cao-cap/da-hoa-cuong-mau-da-granite-vang-buom-027-17.html

http://khodadep.com/da-hoa-cuong-cao-cap/da-hoa-cuong-trang-diem-do-030-44.html

http://basaopro.com/bat-che-nang/

http://basaopro.com/cua-luoi-chong-muoi-cua-luoi-chong-con-trung/

http://basaopro.com/gian-phoi-thong-minh/

http://giay4men.com

http://khoacuachinh.blogspot.com/

http://khoacuago01.blogspot.com/

http://khoacuago02.blogspot.com/

http://khoacuago03.blogspot.com/

http://kinhbaoholaodongyknb.blogspot.com

http://kinhbaoholaodongyknb.blogspot.com/2016/10/mu-bao-ho-lao-dong-han-quoc-sseda-mau.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/kinh-bao-ho-lao-dong-toan-proguard-4680.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/mu-bao-ho-lao-dong-rong-vanh-han-quoc.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/san-pham-kinh-bao-ho-lao-dong-double-shield-nhap-khau-dai-loan.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/mu-bao-ho-lao-dong-3m.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/mu-bao-ho-lao-dong-malaysia-eph-33pl.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/quan-ao-bao-ho-lao-dong-vai-kaki-ben-dep.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/thong-tin-san-pham-quan-ao-bao-ho-lao-dong-cho-nganh-dien-luc.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/lua-chon-mau-quan-ao-bao-ho-lao-dong-phu-hop-voi-tung-nganh.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/ia-chi-mua-giay-bao-ho-lao-ong-nhat.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/quan-ao-bao-ho-lao-ong-chat-luong-tai.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/kinh-bao-ho-lao-dong-toan-proguard-medallas-mbuc.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/thiet-bi-bao-ve-au-mu-bao-ho-lao-dong-3m.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/gioi-thieu-giay-bao-ho-lao-gong-d-01818.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/mua-kinh-bao-ho-lao-dong-an-toan-sperian-a800-trang-bac.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/mu-bao-ho-lao-dong-han-quoc-kukye-mau-trang.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/thong-tin-san-pham-quan-ao-bao-ho-lao-dong-ao-lien-quan.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/mua-mu-bao-ho-lao-dong-han-quoc-sstop-o-dau.html

http://kinhbaoholaodongyknb.blogspot.com/2016/11/thong-tin-san-pham-quan-ao-bao-ho-lao-dong-cho-nganh-dien-luc.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/mu-bao-ho-lao-dong-han-quoc-sseda-mau.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/mu-bao-ho-lao-dong-nhat-quang-su-dung-num-van.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/mu-bao-ho-lao-dong-toyo-nhat-ban.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/mu-bao-ho-lao-dong-3m.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/quan-ao-bao-ho-lao-dong-mau-xanh-cho-cong-nhan.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/quan-ao-bao-ho-lao-dong-cho-nong-nghiep.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/kinh-bao-ho-toan-proguard-serpent-c.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/kinh-bao-ho-kings-ky715.html

http://kinhbaoholaodongyknb.blogspot.com/2016/10/kinh-bao-ho-lao-ong-sperian-a700.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/ao-phan-quang-quan-ao-bao-ho-lao-ong.html

http://kinhbaoholaodongyknb.blogspot.com/2016/12/mua-giay-bao-ho-lao-dong-ecosafe-thap-co.html

Comment by meomeo 2 weeks and 6 days ago

http://redball123.com/

http://hotmaillog.in/

Comment by hoahero 2 weeks and 1 day ago

شاید تا به حال واژه کترینگ را شنیده باشید. شاید حالا هم که این کلمه را می‌خوانید یک لفظ بیگانه و بی‌معنی به نظرتان برسد، اما اگر از آن دسته افرادی باشید که زیاد با هواپیما به سفر می‌روید یا به دفعات در هتل‌های مدرن اقامت داشته‌اید یا در خانه و محیط کار غذاهای رستورانی و رژیمی سفارش می‌دهید حتما با واژه کترینگ آشنا شده‌اید. در هر حال چون ما قصد آزار شما را نداریم و نمی‌خواهیم زیاد به ذهن تان فشار آورید، خیلی سریع شما را با معنی و مفهوم کترینگ آشنا می‌کنیم.کترینگ یک کلمه انگلیسی است و...

http://www.parsa-epc.com/catering.html

http://www.parsa-epc.com/

Comment by ehsan 1 week and 1 day ago

http://www.touristo.ir/loch-lomond-a-freshwater-largest-scotish-lake.html

نام: دریاچه لومند و پارک ملی تروسکس اسکاتلند مکان: اسکاتلند مساحت: ۷۲۰ مایل مربع (۱٫۸۶۵ کیلومترمربع) دریاچهٔ لوموند (Loch Lomond ? تلفظ: لُخ لوموند یا لُک لوموند) جاذبه گردشگری طبیعی در شهر گلاسکو کشور اسکاتلند، دریاچه ای است در غرب اسکاتلند که در ۲۳ کیلومتری شمال شهر گلاسگو قرار دارد. این دریاچه به خاطر زیبایی‌های طبیعی، باشگاه‌های گلف و دسترسی آسان یکی از تفریح‌گاه‌های محبوب اسکاتلند و بریتانیا است. این دریاچهٔ [?]

http://www.touristo.ir/

http://www.touristo.ir/edirne-turkey.html

http://www.touristo.ir/majorca-spain.html

http://www.touristo.ir/

Comment by ehsan 1 week and 1 day ago

Your point of view

You must be signed in to comment.