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.
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:
So your boss wants to know how much memory has been assigned to each virtual machine running on your server... here's how to nab that information from the command line while logged in to that server
--vrdp on enables VirtualBox RDP server for the VM
--vrdpport 3389 ndicates the TCP port that the server will accept RDP connections direct to the VM (for each VM is assigned a different port)
--vrdpauthtype external RDP console gives access to the VM Host physical users via authentication
In fact, in the 3.1.x version of VirtualBox, the external value for the parameter --vrdpauthtype allows access via RDP only to the user who started the VM.
The workaround is to add the user that runs the VM to shadow group, using the command
Yep, is hard, but is a way more flexible using pipe.
Shows the first IP on named interface including the network size
* lowQ/ is the output directory
* pass quality level from 1 to 100
Useful to archive files once a day:
cp file file.$(date --iso)
Requires either imagemagick or graphicsmagic utility.
Hi glaudiston, you can save a few chars by leaving out cat and pipe and still enjoy the added flexibility.
Translate the X selection from German to English. The tw program is available from Savannah: http://mirror.its.uidaho.edu/pub/savannah/twandgtw/
I'm posting this because the base Debian system also does not include curl.
if you want to only print the IP address from a file.
In this case the file will be called "iplist" with a line like "ip address 220.127.116.11"
it will only print the "18.104.22.168" portion
Learning cardinal and ordinal numbers in Spanish, with the best sounds files, try to get the best way to improve youLearning cardinal and ordinal numbers in Spanish, with the best sounds files, try to get the best way to improve your vocabulary.
This function uses xmllint to evaluate xpaths.
Usage: xpath /path/to/element XMLfile
Note between the last there is no plus sign
Handles everything except octets with 255. Ran through ip generator with variable octet lengths.
It is safe when there is
This command is useful when there is no need to have a password.
Get info directly from /proc/uptime
ssh compresion -C option ...
on slow connection VNC performs better but in local LAN native secure X protocol is an option
after installing new fonts ( tfm , pfb , cjk , truetype ... ) manually in your ~/.Texmacs/fonts , it doesn't always reload it properly , just refresh it by delete the old cache fonts
in sample output , I just installed TrueType Chinese CJK fireflysung fonts supports
a brief list of very common special characters in Dutch. Usefull for formatting Word source to html.