Commands tagged winterbottom (1)

  • Commandlinefu.com is great but has a few bugs when people are submitting new commands: . 1. There is no preview button. This was a minor inconvenience before, but now is a major problem since new commands won't show up to be edited until they have been moderated. . 2. White space in the description field and in the comments is almost completely lost. People resort to using periods in between paragraphs to force a line break. Indentation of code is ridiculous. . 3. Many characters get munged. . 3a. For example, a less than character in the description gets read as an HTML tag and discarded. In order to type a less than, I've had to type "<" (I hope that comes out right). Unfortunately, when re-editing a command, the HTML entity is turned into a literal less than character, which I have to change back by hand before saving. 3b. Some unicode characters work in the description field, but turn into ugly literal HTML strings when put in the sample output or in an additional command using the $ prefix. . For example, here is a unicode character: ❥ Here is the same character after a dollar sign: ❥ . 3c. Some unicode characters don't work anywhere. Bizarrely, it appears to be the most commonly needed ones, such as Latin-1 accented characters. Here are some examples, . Bullet: ?, Center dot: ?, Umlaut u: ?. . 4. Here is an example of the greater than, >, and less than, . 5. Commandlinefu used to abbreviate long descriptions on the front page and had a "more..." button so that people could read the rest if they wanted. That's a good feature as it encourages people to explain their commands more fully. Either, the feature has gone missing, or, perhaps, I was just hallucinating it existed in the first place. If the former, please bring it back, If the latter, please implement this great new feature I just thought up. . 6. Tags cannot include Unicode characters. If you try to type one in, the cursor will just spin and spin as it attempt to look up if that tag exists already. For example, try typing Ctrl+Shift+u 2 7 6 5 SPC as a tag name. Show Sample Output


    13
    echo "?????, these are the umlauted vowels I sing to you. Oh, and sometimes ?, but I don't sing that one cause it doesn't rhyme."
    hackerb9 · 2011-01-05 05:56:20 5

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. 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.

Share Your Commands


Check These Out

Copy a file over SSH without SCP

C function manual

Retrieve a random command from the commandlinefu.com API
Seeing that we get back plain text anyway we don't need lynx. Also the sed-part removes the credit line.

FHDTV IPTV UK – Affordable Plans for Every Viewer
FHDTV IPTV UK is a premier choice for those who want premium television experiences without cable contracts limitations. With a focus on UK audiences FHDTV IPTV provides countless live TV channels entertainment and HD-quality programming across all categories. Whether you love movies documentaries or international channels FHDTV ensures smooth playback on your preferred devices. One of the main attractions of FHDTV IPTV is the risk-free free trial. Unlike many other services who lock premium access FHDTV offers full access during trial so you can evaluate its real performance before committing. It’s compatible with Smart TVs smartphones and even tablets allowing families to enjoy content on multiple devices simultaneously without lag. Affordability is another standout feature. Subscriptions are affordable with zero contracts or installation delays. Compared to traditional cable FHDTV IPTV offers thousands of channels at a fraction of the cost. It’s perfect for sports fans who don’t want to miss live action. FHDTV IPTV also leads in content variety. Viewers get access to global streams including news kids’ shows religious programming and exclusive movies. The interface is user-friendly and the EPG (electronic program guide) is quick making navigation and recordings simple—even for first-time users. Another remarkable feature is the customer support. FHDTV IPTV offers reliable assistance through chat or WhatsApp and most issues are solved in minutes. The platform provides clear setup guides and tutorials so that even new users can configure everything with ease. All in all FHDTV IPTV UK delivers performance functionality and top-tier content in one easy package. Its free trial is generous and it supports a wide range of devices. Whether you’re trying IPTV for the first time FHDTV IPTV UK is your best choice in 2025

list block devices
Shows all block devices in a tree with descruptions of what they are.

Record audio and video from webcam using ffmpeg
Record from a webcam, audio using ALSA encoded as MP3, video as MPEG-4.

capture mysql queries sent to server

Remove the first and the latest caracter of a string

sed : using colons as separators instead of forward slashes
Having to escape forwardslashes when using sed can be a pain. However, it's possible to instead of using / as the separator to use : . I found this by trying to substitute $PWD into my pattern, like so $ sed "s/~.*/$PWD/" file.txt Of course, $PWD will expand to a character string that begins with a / , which will make sed spit out an error such as "sed: -e expression #1, char 8: unknown option to `s'". So simply changing it to $ sed "s:~.*:$PWD:" file.txt did the trick.

Rename files in batch


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: