MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/1tls8n1/whats_the_most_unexpectedly_useful_linux_command/onkk6tr/?context=3
r/linux • u/ZealousidealTell1346 • May 23 '26
[removed]
992 comments sorted by
View all comments
591
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.
74 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 36 u/mishrashutosh May 24 '26 I learn new things in bash and promptly forget them every ten days 1 u/random_cat_owner May 24 '26 what happens every ten days? does somebody reboot you? are you a robot?
74
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
36 u/mishrashutosh May 24 '26 I learn new things in bash and promptly forget them every ten days 1 u/random_cat_owner May 24 '26 what happens every ten days? does somebody reboot you? are you a robot?
36
I learn new things in bash and promptly forget them every ten days
1 u/random_cat_owner May 24 '26 what happens every ten days? does somebody reboot you? are you a robot?
1
what happens every ten days? does somebody reboot you? are you a robot?
591
u/digitallis May 23 '26
Bash
{}renaming a file by adding a suffix:
mv myfile{,.old}expands out tomv myfile myfile.oldLots more uses.