Skip to main content

Rename a file on UNIX/LINUX/UBUNTU/SunOS with Special Characters

While renaming a file on Unix or Linux(Ubuntu) or SunOs , just add single quote to the destination file name and you are done.Its a bit of tricky to handle special characters in filename, sometimes.

Here is a simple way to do it :

$ mv /tmp/filename.jpg '/tmp/filename~!@#$%.jpg'

Comments