Command Line Magic (@climagic) 's Twitter Profile
Command Line Magic

@climagic

Cool Unix/Linux Command Line tricks you can use in $TWITTER_CHAR_LIMIT characters or less. Here mostly to inspire. Also on mastodon.social/@climagic

ID: 91333167

linkhttp://www.climagic.org/ calendar_today20-11-2009 12:49:35

14,14K Tweet

192,192K Followers

10,10K Following

Command Line Magic (@climagic) 's Twitter Profile Photo

Add some spice to your text by randomly coloring each word in a text file. head -n30 cat_haiku.txt | awk 'BEGIN{srand()} RS=" " {c=int(rand()*200)+32;printf "\033[38;5;" c "m" $0 "\033[0m "}'

Add some spice to your text by randomly coloring each word in a text file.

head -n30 cat_haiku.txt | awk 'BEGIN{srand()} RS=" " {c=int(rand()*200)+32;printf "\033[38;5;" c "m" $0 "\033[0m "}'
Command Line Magic (@climagic) 's Twitter Profile Photo

If you are a user of geeqie (a nice *nix photo viewer) and need to start a second session, but don't want it to interfere with the first, you can use the -n option: geeqie -n Check 'man geeqie' for a bunch of other useful options.

If you are a user of geeqie (a nice *nix photo viewer) and need to start a second session, but don't want it to interfere with the first, you can use the -n option:

geeqie -n

Check 'man geeqie' for a bunch of other useful options.
Command Line Magic (@climagic) 's Twitter Profile Photo

Countdown to 20,000 + surprise (bash version + requires cowsay): tt=$((20000*86400));until [[ $(date +%s) -ge $tt ]];do cowsay $(($tt - $(date +%s) ));sleep 1;clear;done ; for i in {16..250};do printf "\x1b[48;5;${i}m%

Command Line Magic (@climagic) 's Twitter Profile Photo

Sorry, the command got cut off when I copy/pasted it. for i in {16..250};do printf "\x1b[48;5;${i}m%$(($COLUMNS*$LINES))s" "";sleep 0.1;done

Command Line Magic (@climagic) 's Twitter Profile Photo

If you've been looking to get the new CLImagic stickers at a reduced price, I have a coupon SUSOOCT20OFF running til the end of the month for 20% off. ebay.com/itm/2263459464… ebay.com/itm/2263448154…

Tim Chase (@gumnos) 's Twitter Profile Photo

Here's your regular reminder that you can toggle options within less(1) without having to re-start it. Type minus followed by the option-letter. So -i for case-(in)sensitivity -R for ANSI handling -S for wrapping long lines -N for line-numbers -g for search-match highlighting

Command Line Magic (@climagic) 's Twitter Profile Photo

Wondering where the content is? I've been on Mastodon for years (Command Line Magic) and now Bluesky (climagic.bsky.social) as well. I tend to post more to those networks lately and will reduce the amount here (whatever you want to call this place anymore).

Wondering where the content is? I've been on Mastodon for years (<a href="/climagic/">Command Line Magic</a>) and now Bluesky (climagic.bsky.social) as well. I tend to post more to those networks lately and will reduce the amount here (whatever you want to call this place anymore).