#cli

10 posts · Last used 17h

Back to Timeline
@cark@social.tchncs.de · 18h ago

RE: @cark@social.tchncs.de

#TIL You can copy or rename files without retyping the path:

❯ cp /your/long/path/config.toml{,.bak}

This expands to:

cp /your/long/path/config.toml /your/long/path/config.bak

Works also with echo (nice for testing).

Thanks to @irom@social.tchncs.de for recently pointing me in this direction. 👍️

#bash #linux #cli

Quoting
CarK :python: @cark@social.tchncs.de

In bash you can create multiple (nested) directories with a single compact line:

❯ mkdir -p a/{b,c/{x,y},d/{e,f}}

❯ tree
.
└── a
├── b
├── c
│    ├── x
│   └── y
└── d
├── e
└── f

Open quoted post
15
0
15
In reply to
@kkarhan@jorts.horse · Apr 22, 2026
@nuclearplayer@fosstodon.org or don't use their weird #CLI tool and instead go with their regular #API & #git that any decent #IDE can use…
1
0
0
@saxnot@chaos.social · Apr 19, 2026
linux utility which waits until [uri] responds with [http code] e. g. waiting for example.com/test, http 404 waiting for example.com/test, http 404 waiting for example.com/test, http 404 Hooray! Http 200 from example.com/test #sysop #devops #linux #cli #gnulinux #sysops #http
0
4
0
@marighost@piefed.social in linux · Dec 16, 2025

What are some of your most useful or favorite terminal commands?

I’ve been setting up a new Proxmox server and messing around with VMs, and wanted to know what kind of useful commands I’m missing out on. Bonus points for a little explainer. Journalctl | grep -C 10 'foo' was useful for me when I needed to troubleshoot some fstab mount fuckery on boot. It pipes Journalctl (boot logs) into grep to find ‘foo’, and prints 10 lines before and after each instance of ‘foo’.
0
126
0
@eaglw@social.linux.pizza · Mar 02, 2026
Today I asked #Gemini #CLI to install the #n8n #MCP server. It was incredibly easy. I deployed three fully functional automations in no time.
0
0
0
@philcowans@universeodon.com · Feb 28, 2026
Is there a standard #Linux #CLI tool for managing #OAuth2 tokens? I'd like to be able to call it from other scripts and (I guess) have the token returned on stdout. Appreciate that this will require some sort of out-of-band interaction when no token is already available, but maybe someone has already thought about that. I specifically want this to work with the Microsoft and Mastodon APIs in the first instance (I assume it's probably naive to think that OAuth2 will just work across all vendors). Appreciate that this is a relatively simple use case and I probably could implement it myself, but wanted to check whether there was anything obvious out there first.
0
1
1
@trojkat@101010.pl · Feb 26, 2026
Perch - całkiem ładny klient Mastodona i Bluesky dla Linuksa. https://github.com/ricardodantas/perch #linux #terminal #cli #rust
0
0
0
@adhisimon@mastodon.kodesumber.com · Feb 25, 2026
Sepertinya bakal stay pakai sendme buat kirim-kirim file secara gampang dari cli https://www.iroh.computer/sendme Alternatif lain ada croc. https://github.com/schollz/croc #sendme #iroh #linux #cli
0
0
0
@intrepidhero@vmst.io · Feb 21, 2026

This morning’s project was learning how to resize and watermark images from the command line using image magick.

I was tearing out my hair for a bit until I realized that gwenview must be doing some weird in-memory caching. It doesn’t seem to properly reload files from disk if you delete and then recreate a new version with the same name. Switched viewers and suddenly the commands started working.

  1. Created a basic watermark in inkscape. Export as PNG with transparent background.

  2. Resize syntax with ‘>’ only shrinks if source is greater than.

magick convert [infile] -resize 600x2000> [outfile]

#cli #photography

1/

0
0
0
@realestninja@social.linux.pizza · Jan 29, 2026
TIL: smartctl, a cli utility which can be used to assess the health of a harddisk https://wiki.archlinux.org/title/S.M.A.R.T I have two 2TB disks laying around that were used either for a few days but maybe for a few months, not sure. With this tool I should be able to check out the disk health 🤓 #cli #selfhosting #linux #nas
4
3
1

You've seen all posts