Hello, I am new to linux, I have been trying to copy .pdf from my pc to external hard disk. But I got an error, I found that this weird character is the problem. I have search around for solution but the problem is that I don't know what character is it thus cannot remove. I tried to copy this weird character but unable to paste it. I can manually delete them, but there are too many. Also this character is visible only when renaming the file but invisible when not. Thank you.
I'm using linux mint cinnamon 17.1
Sorry for my Engiish.
How to remove unknown character from file name with terminal
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How to remove unknown character from file name with terminal
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How to remove unknown character from file name with term
Replace the unknown character with an asterisk.
For example, if I had a file called 'bad#file', and the '#' character were an unknown character, I would copy and rename it like this:
If this doesn't work, here are some more complicated methods:
http://serverfault.com/questions/348482 ... -filenames
http://askubuntu.com/questions/25823/be ... -filenames
http://askubuntu.com/questions/65473/ho ... file-names
For example, if I had a file called 'bad#file', and the '#' character were an unknown character, I would copy and rename it like this:
Code: Select all
cp /path/to/bad*file.pdf /path/to/destination/directory/good_file.pdf
http://serverfault.com/questions/348482 ... -filenames
http://askubuntu.com/questions/25823/be ... -filenames
http://askubuntu.com/questions/65473/ho ... file-names
Re: How to remove unknown character from file name with term
Thank you Buzzsaw for reply, but I have already manually rename all of them. Thanks anyway.