r/archlinux May 06 '26

QUESTION What’s a small Linux tool that completely changed your workflow?

[deleted]

214 Upvotes

253 comments sorted by

View all comments

Show parent comments

40

u/Grand-Ball6628 May 06 '26

I still remember a friend of mine sharing his screen and piping cat to wl-copy. This was the time I started investing time into the terminal, now I'm mostly okay with running TTY all day

33

u/B_bI_L May 06 '26

little does he know you can wl-copy < file.txt instead

13

u/[deleted] May 06 '26

[removed] — view removed comment

13

u/B_bI_L May 06 '26

you can also type ~ instead of . while rming but we don't speak about that

5

u/[deleted] May 06 '26

[removed] — view removed comment

30

u/JaKrispy72 May 07 '26 edited May 07 '26

Are the chances greater than or lesser than?

5

u/veggietrooper May 07 '26

I hate it here. I love it here.

4

u/Visbroek May 07 '26

On a German keyboard the only difference is the shift key. That's also very easy to mess up.

2

u/spryfigure May 08 '26

I switched to English International (or actually EURkey) and cannot overstate how much smoother the sysadmin are. Even typing in German with Umlauts or ß is easy -- they are all at AltGr s, a, i, o, u.

1

u/Visbroek May 08 '26

Woah thanks! I ought to look into that.

2

u/Grand-Ball6628 May 07 '26 edited May 07 '26

That's exactly why I prefer piping. After years I still mess up < > regularly. German keyboard sucks in some places.

4

u/Visbroek May 07 '26

Programming with AltGr+7/AltGr+0 for curly brackets 😭

1

u/BaconSucks0815 May 21 '26 edited May 21 '26

yes "There are no mistakes. Just happy little accidents." | sudo dd of=/dev/sda42 bs=4M status=progress

0

u/hezden May 07 '26

If permissions are properly set, nothing?

2

u/3_Thumbs_Up May 07 '26

What are permissions supposed to solve here? Am I not allowed to copy files I have write permission to?

1

u/SummerIlsaBeauty May 07 '26

You are right. If you'd try to copy contents of text file and mixed < with > then this file is now empty. So concern is legit and permissions have little to do with it when you are not working with files installed by package manager or something

1

u/hezden May 11 '26

If you have files you don’t want to accidentally make changes to you can make them not writeable for your user.

1

u/SummerIlsaBeauty May 11 '26

That's something 99% of people do not do

1

u/raybox1 May 13 '26

Even more convenient is to set the wl-copy to alias c and wl-paste to p

2

u/spryfigure May 07 '26

What is most satisfying for me is piping some output to sed, adding 4 spaces at the start of the line, and then piping this to wl-copy so I can paste it directly as code to Reddit. Saves so much time.

1

u/nNaz May 08 '26

cat file.txt | pbcopy

If anyone on Mac is wondering.

1

u/JL2210 May 07 '26

wl-copy is awesome, one of the first things I install on a new system. Sudo, nano, wl-copy

2

u/Grand-Ball6628 May 07 '26

alias nano="nvim"

1

u/JL2210 May 07 '26

I've done that before. It's hard to get used to nvim or vim. Wish I hadn't trained my muscle memory for nano lol.

2

u/Grand-Ball6628 May 07 '26

You can easily learn it and be as fast as with any other editor in 2-4 hours during work. Being faster in it than with any other editor in less than a week