Command Line Magic's Avatar

Command Line Magic

@climagic.bsky.social

Cool Unix/Linux Command Line tricks you can use in $CHAR_LIMIT characters or less. Here mostly to inspire. https://www.climagic.org/

747 Followers  |  3 Following  |  18 Posts  |  Joined: 12.12.2024  |  1.6034

Latest posts by climagic.bsky.social on Bluesky

Is the post-mis-information age going to be any better?

05.10.2025 18:39 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
It's a form field that asks for Today's Date

It's a form field that asks for Today's Date

Bad UX design demonstrated in one form field.

03.09.2025 21:29 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

It's funny how humans complain about AI hallucinations when humans make shit up all the time.

25.07.2025 17:48 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

Vim users: If you'd like to highlight the whole line the cursor is on:

:set cursorline

I just used that when examining package output from dpkg -l so that I could easily see which description matched each package.

25.07.2025 11:59 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Being able to do stuff like this is what makes the command line pretty special:

ssh 192.168.0.15 'sudo dd if=/dev/sda bs=1M status=progress' > backup-old-drive.img

18.05.2025 01:16 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
It's a clipart meme image with the first character saying "LInux: You can copy a file with the 'cp' command. and the 2nd character responding "THAT'S TOO HARD!". Then the next characters with beards. The one on the left asks "Sharepoint: How can I copy a file?" and the one of the right just responds "No."

It's a clipart meme image with the first character saying "LInux: You can copy a file with the 'cp' command. and the 2nd character responding "THAT'S TOO HARD!". Then the next characters with beards. The one on the left asks "Sharepoint: How can I copy a file?" and the one of the right just responds "No."

All I wanted to do was copy a file.

18.04.2025 14:40 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A Ghibli Studios themed recreation of the famous photo of Ken Thompson watching a seated Dennis Ritchie in front of a teletype and DEC PDP-11. But instead it says GHIBLI PDP-11.

A Ghibli Studios themed recreation of the famous photo of Ken Thompson watching a seated Dennis Ritchie in front of a teletype and DEC PDP-11. But instead it says GHIBLI PDP-11.

The Daemon In The Castle

01.04.2025 21:10 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

This Minecraft MMO server has "command line terminals" in it. Non-functional, but I approve.
play.stardew.net

15.03.2025 02:44 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Couldn't help but notice the lunar eclipse tonight at least in eastern time zone is Ο€ (3.14159) as in March 14th in the 159th minute of the day (2:39am)

13.03.2025 20:50 β€” πŸ‘ 1    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0

I tried to do standup comedy once.
But, by the time I finished editing the joke,
the audience was already walking out and
my computer was all over the floor.

13.03.2025 19:37 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Text from page 7-36 of the AmigaDOS manual, it has hotkeys that mimic Emacs keys and it talks about the characteristics of the shell.

Text from page 7-36 of the AmigaDOS manual, it has hotkeys that mimic Emacs keys and it talks about the characteristics of the shell.

Post image

I had forgotten how unixy the Amiga shell is.

13.03.2025 01:20 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

If you mistakenly use curl like nc like the following:

curl www.example.com 80

the port number ends up being treated as an IP address of the form 0.0.0.N. So if you see traffic destined to 0.0.0.80, 0.0.0.22, etc. on your network, it's probably someone messing up their curl command.

25.02.2025 17:54 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
AT&T Archives: The UNIX Operating System
YouTube video by AT&T Tech Channel AT&T Archives: The UNIX Operating System

Today I learned that not only Libreoffice didn't have a unique() function until recently, but apparently Excel didn't even have it until 2018. This is like 30 years later than you'd expect spreadsheets to implement it. Unix had it in 1982 as Brian Kernighan shows here www.youtube.com/watch?v=tc4R...

27.01.2025 16:22 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

If you're concerned about how your use of wildcards and brace expansion will be interpreted by the shell and passed to the program, you can usually replace the command name with echo first to get a list of the args that will be generated:

echo Photos/\[Conference\]-*.{jpg,mp4}

24.01.2025 14:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

If you're not sure what type of data is in a gzip, bzip2, or xz format file, one way to find out is to pipe its decompressed output into the 'file' command:

gzip -dc unknown-gzip-file | file -

It will tell you the type of file data that is inside. The -dc options also work with bzip2 and xz

23.01.2025 14:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I ran this yesterday to solve a CTF. It should have been called a WTF.
xxd -r data.txt | gzip -cd | bzip2 -cd | gzip -cd | tar x -O | tar x -O | bzip2 -cd | tar x -O | gzip -cd

18.01.2025 12:22 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Every Unix is sacred, every Unix is best.
Every Unix is different, when you run ps.

15.01.2025 16:19 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
The Bluesky logo in ASCII art.

The Bluesky logo in ASCII art.

printf "\e[34;1m . .\n( \\__/ )\n \\ /\n (_/\_)\n\e[0m"

12.12.2024 15:00 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

@climagic is following 3 prominent accounts