ISO27001:2013
Certified Supplier

FIND OUT MORE

We're an ISO27001:2013 Certified Supplier

blog-post-featured-image

Here’s how to make a backup copy of a file:

Here’s a quicker way of achieving the same thing:

How it works

The shell expands the comma-separated list within the braces, appending each value in turn to the file name. The first character within the braces is a comma, so the first comma-separated string is null; the second is .bak. That means that the second command above expands to be exactly the same as the first.

Want to make a copy of all *.conf files in a directory?

What’s your favourite Linux tip?

Let us know in the comments below.

Leave a Reply

Your email address will not be published. Required fields are marked *