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.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
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.
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
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:
Similar to `cpulimit`, although `prlimit` can be found shipped with recent util-linux.
Example: limit CPU consumption to 10% for a math problem which ordinarily takes up 100% CPU:
Before:
bc -l <(echo "1234123412341234^12341234")
See the difference `prlimit` makes:
prlimit --cpu=10 bc -l <(echo "1234123412341234^12341234")
To actually monitor the CPU usage, use `top`, `sar`, etc.. or:
pidstat -C 'bc' -hur -p ALL 1
There is 1 alternative - vote for the best!
Will limit the amount of CPU time Grooveshark the greedy yet useful Adobe Air app will have.
Leaves the UI lagging a little, but crucially does not ruin the audio.
If you can do better, submit your command here.
You must be signed in to comment.
Welcome to my Taobao shop !
Daily update:
Discover amazing stuff, collect the things you love, buy it all in one place.
novel style, varieties, low price and good quality, and the low sale price
==== ( http://www.fullmalls.com ) =====
==== ( http://www.fullmalls.com ) =====
New to Hong Kong : Winter Dress
Best quality, Best reputation , Best services
---**** NHL Jersey Woman $ 40 ---**** NFL Jersey $ 35
---**** NBA Jersey $ 34 ---**** MLB Jersey $ 35
---**** Jordan Six Ring_m $ 36 ---**** Air Yeezy_m $ 45
---**** T-Shirt_m $ 25 ---**** Jacket_m $ 36
---**** Hoody_m $ 50 ---**** Manicure Set $ 20
---**** handbag $ 37 ---**** ugg boot $ 43 ---****
give you the unexpected harvest
==== ( http://www.fullmalls.com ) =====
==== ( http://www.fullmalls.com ) =====
==== ( http://www.fullmalls.com ) =====
==== ( http://www.fullmalls.com ) =====
And what does it mean to limit the cpu time to 10 seconds: That the process can only run for maximal 10 CPU seconds? Or that the process will get re-scheduled after 10 seconds?
Not seconds of time, but *CPU time* (as in "timesharing"). The CPU is a finite resource which has to be shared, and sometimes the greedy processes should be throttled; the other processes need their fair share of time on the CPU too.. So rather than allowing our greedy process to hog the CPU core for 100% of the time, we limit him to only 10% of the available time on that core.