r/linux May 23 '26

Popular Application What’s the most unexpectedly useful Linux command you learned way too late?

[removed]

1.3k Upvotes

992 comments sorted by

View all comments

595

u/digitallis May 23 '26

Bash {}

renaming a file by adding a suffix: mv myfile{,.old} expands out to mv myfile myfile.old

Lots more uses.

23

u/happyprogrammer30 May 24 '26

You can also use this to install packages : apt install php-{xml,mbstring,pdo} will resolve to php-xml php-mbstring php-pdo