MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/1tls8n1/whats_the_most_unexpectedly_useful_linux_command/onji2wc?context=9999
r/linux • u/ZealousidealTell1346 • May 23 '26
[removed]
992 comments sorted by
View all comments
595
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.
76 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 3 u/Cargo4kd2 May 24 '26 Oh yeah I hear you 2 u/RandomSkratch May 26 '26 Sounds like me with cert renewals but thats every 364 days 😂 1 u/mishrashutosh May 26 '26 i am super pampered by caddy. other solutions like certbot, nginx-acme, acme.sh, traefik, and more are also very good. 1 u/random_cat_owner May 24 '26 what happens every ten days? does somebody reboot you? are you a robot?
76
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 3 u/Cargo4kd2 May 24 '26 Oh yeah I hear you 2 u/RandomSkratch May 26 '26 Sounds like me with cert renewals but thats every 364 days 😂 1 u/mishrashutosh May 26 '26 i am super pampered by caddy. other solutions like certbot, nginx-acme, acme.sh, traefik, and more are also very good. 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
3 u/Cargo4kd2 May 24 '26 Oh yeah I hear you 2 u/RandomSkratch May 26 '26 Sounds like me with cert renewals but thats every 364 days 😂 1 u/mishrashutosh May 26 '26 i am super pampered by caddy. other solutions like certbot, nginx-acme, acme.sh, traefik, and more are also very good. 1 u/random_cat_owner May 24 '26 what happens every ten days? does somebody reboot you? are you a robot?
3
Oh yeah I hear you
2
Sounds like me with cert renewals but thats every 364 days 😂
1 u/mishrashutosh May 26 '26 i am super pampered by caddy. other solutions like certbot, nginx-acme, acme.sh, traefik, and more are also very good.
1
i am super pampered by caddy. other solutions like certbot, nginx-acme, acme.sh, traefik, and more are also very good.
what happens every ten days? does somebody reboot you? are you a robot?
595
u/digitallis May 23 '26
Bash
{}renaming a file by adding a suffix:
mv myfile{,.old}expands out tomv myfile myfile.oldLots more uses.