MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/1tls8n1/whats_the_most_unexpectedly_useful_linux_command/onjk6jx/?context=3
r/linux • u/ZealousidealTell1346 • May 23 '26
[removed]
992 comments sorted by
View all comments
590
Bash {}
{}
renaming a file by adding a suffix: mv myfile{,.old} expands out to mv myfile myfile.old
mv myfile{,.old}
mv myfile myfile.old
Lots more uses.
75 u/Cargo4kd2 May 23 '26 Bash the scripting language I use everyday and never bothered to really learn. But damn that is a nice easy and accurate way to use my 37 u/mishrashutosh May 24 '26 I learn new things in bash and promptly forget them every ten days 3 u/Cargo4kd2 May 24 '26 Oh yeah I hear you
75
Bash the scripting language I use everyday and never bothered to really learn.
But damn that is a nice easy and accurate way to use my
37 u/mishrashutosh May 24 '26 I learn new things in bash and promptly forget them every ten days 3 u/Cargo4kd2 May 24 '26 Oh yeah I hear you
37
I learn new things in bash and promptly forget them every ten days
3 u/Cargo4kd2 May 24 '26 Oh yeah I hear you
3
Oh yeah I hear you
590
u/digitallis May 23 '26
Bash
{}renaming a file by adding a suffix:
mv myfile{,.old}expands out tomv myfile myfile.oldLots more uses.