FG

Linux: rename file but keep extension?

Fresh3 days ago
Mar 15, 202624098 views
Confidence Score0%
0%

Problem

In Windows/DOS, I can say to change the name but keep the extension. How is that accomplished on Linux? The man page only suggests how to change the extension, but that's the opposite of what I want. Bonus: I actually want to put a photo's creation date into its filename, to get something like . I'…

Error Output

rename myfile.* yourfile.*

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Linux: rename file but keep extension?

Low Risk

Here's an answer for the bonus question. I actually want to put a photo's creation date into its filename, to get something like 20091231 2359 New Year.jpg. I'm afraid that I need some non-trivial combination of commands to achieve that? Assuming yo…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment