Ubuntu :: Cannot Rename Or Delete Files / Folders With Foreign Characters
May 12, 2010
Can't rename, move or delete files or folders that have a foreign character.
The file or folder /data/down/done/1999 Taraf de Ha-douks does not exist.
Kubuntu Karmic. Fails in konqueror and dolphin.
I am happy to report I successfully setup a cloning station using Ubuntu 10.4 Lucid Lynx and Clonezilla. I learned the hard way you have to restore images to a hard drive of a larger size than the drive the image was ripped from. I had already ripped 6 or more images and have them in the Home_Partimag folder and cannot delete or rename these images. I want to remake these images and rip them from smaller hard drives. Any commands I can use to be able to do this?
I have about 300 files that need renaming, because the file system does not display the French characters properly. The dodgy letter in question has been replaced by a "question mark in a black diamond" symbol.No way of renaming, other then using mv in the Konsole has worked. Is there any way, script or program out there, that will do a batch rename?
I'd like to use pyRenamer to identify and rename files with reserved characters in the file name. The files came from windows where I'm guessing the characters didn't cause problems. For example, I want to replace the ? (question mark), ' (single quote), etc. I tried using the escape () character before the special character in the replace field on the substitutions tab, but for some reason I don't believe that method was identifying the special characters. What is the correct way to identify a special / reserved character within a file name and replace it?
I have quite a few sound sample files totaling over 4 gigs in size with around 80 root folders and then around 34 sub folders. i have a total of 13 DVD's in the above format. how do i "change the date" on all files in one go is that possible?
We have a problem at work that we are using Word Press And now for security we have to delete install.php in WP-Admin and rename upgrade.php and install_helper.php to *.bak Im a noob in Script creating (Had a bit practice a couple of years ago but allready forgot T.T) So what i ask that is there a way to make a script
That:Finds wp-admin(if it exists) folder enters into it and there deletes install.php and renames upgrade.php and install_helper.php to *.bak and the makes the same process again untill theres no wp-admin folders left with these files, We have alot of web pages so manually it would take about a month to find em all (about 3000 pages :
how do i delete any single one of the files in my whole disk that say something along the lines to "chromium os"? i.m just wondering because i tried to install through virtual box and failed, and probably have three different partitions consisting of nothing.
In this case its the french accented e that is getting translated:[test]$ touch dd touch: cannot touch `351dd': No such file or directory the thing is the folder test is an smb mount. The windows server which is dropping files into it is able to make the file visible but the app running on the linux can't fetch it because the name is 'unexpected'if I create a file anywhere else e.g. in /tmp/ with the name response.txt it is fine. When I ls I see r?sponse.Can you advise me if I should be looking at the smb config AND the host config and give me some pointers as to where to get started trying to solve this.
I have a bunch of files on a Ubuntu box, which have various characters in their filenames that Windows doesn't accept (mostly ":" and "*", but possibly others).What's the simplest way to get these all renamed and moved to a Windows machine? It's OK to replace these characters with something like "[colon]" and "[asterisk]".
Although I've been using Ubuntu for a while, I haven't really done any scripting thus far,but now find myself needing to do (what I thought was) some fairly simple stuff.However, despite much searching, I have been unable to find a solution to my problem.I need a script which will delete all of the files/folders from a directory except those I specify. From the command line, I am able to use:rm -r !(constant|system|*.msh|)
which works fine, deleting everything except the 'constant' and 'system' folders (and everything in them) and any files ending in '.msh'. I have tried to put this into a script file, specifying to use the bash shell, and escaping the required characters, but I just get the message 'cannot find !(constant|*.msh)'.I have read that using the find command may be a better way of doing it, but so far I have not been able to make the command work in the way which I need (I have easily been able to delete ALL the files/folders in the directory!).
What command could I use in terminal to delete all ASCII characters? That is, delete a-z, A-Z, 0-9, and all punctuation? I have a file containing Chinese characters, and I want to remove everything else and leave just the Chinese.
I can use grep to leave only the lines that have Chinese in them, but this still leaves a lot of non-Chinese stuff on those lines. Does anyone know how I could actually remove everything that isn't Chinese?
How would I rename all files with a leading decimal point recursivley? I some how got all my music files to have a decimal point.I tried the below and got a " sed argument to long".[CODE]find /media/MUSIC -type f -name "*.wma" | xargs -0 sed -i 's/.(.*)/1/'[CODE]
Another question, can i just use -type f with out -name ? I am sure that all the files got the decimal point added as the first character.
I have installed a new system on my desktop computer, and would now like to delete files/folders from the web interface, as they no longer reflect the files and folders on my desktop PC. I use my desktop PC to sync files and folders one way to my laptops.
I am trying to hide some folders in Ubuntu Linux which are always hidden in Windows through File/Folder Attributes (attrib -h)
It is not an option for me to rename the folder from let's say "Ancient texts directory" to ".Ancient Texts Directory" because the programs associated with these files and shortcuts will not work in Windows. I would like to make the folder hidden by not renaming the folder. Is that so hard to ask?
Is there really no other way of making a folder or a file hidden in Linux just like in Windows by Applying Attributes? I Don't want to rename it by putting a dot in front of it. Moreover renaming a file by putting a dot in front of the name changes the position the folder appears in the list view. For some people this may be ridiculous, but for me with a few hundred files and folders and subfolders, this organisation is important, aside from the aforementioned reasons.
I need to maintain compatibility between the two operating systems' basic folder structure as i must use both Operating systems.
I have an archive directory that needs to be cleaned up once per quarter. The top level (/data/archive/*) directory names change daily, as well as the subdirectories and the filenames (the application names everything according to date). Also, there are two top level directories, bin and incoming, that we can't touch. I want to write a shell script that loops through the 15 or 20 top level directories and deletes all files and subdirectories older than 3 days (skipping the bin and incoming folders). Can someone get me started on a script? I am kinda new to shell scripting.
10.10 on a ext4 partition. I deleted a folder that sat on a NTFS partition that I use as data storage. I note that if I delete folders or files on this NTFS partition there is not the option to move to waste basket - it is just deleted. If the folder still exists on the hard drive (has not been over written) I may be able to retrieve it - but where could it be? On the NTFS partition?
I'm experiencing an odd problem under karmic where I can create and delete folders via Samba from an XP box, but I can not rename folders. I get an "acccess denied" message.I've been using linux and samba for years and I've never seen anything like this.My samba configuration is quite simple..... I'm wondering if this is a bug.
[global] workgroup = HOUSE server string = %h server (Samba, Ubuntu)
I have moved all files from one hard drive to another but one file remains that I cannot move, delete or rename.
From a fresh boot, nothing nefarious running in the background...
Using Nauitilus, find a file called: .goutputstream-59R62U
It appears to be a 1.5Gb MPEG file. I can click on it and it plays in MoviePlayer. I can drag it into VLC and it plays normally. But I can't move it, delete it or rename it and I can't do the same to its parent directory or the parent of that directory.
Running sudo nautilus from Terminal it doesn't appear at all.
Running Gnome Commander it doesn't show up either. When trying to delete its parent directory (with permissions set to rwxrwxrwx) I get the following error:
I've got about twenty folders with names such as "Bennett Galleries" or "Athletic House" and I want to rename them to "Bennett_Galleries" or "Athletic_House". Any right utility to use to accomplish this (sed, awk, bash script, etc...)?
I have this cool bash script that I worked hard on. But it broke down when it can across files that had non-English characters. Another small problem was getting it to descend into a directory. If it renamed a directory it would not descend into that dir to rename the other files. I would have to run the script twice on the same directory.
Here is the script: Code: find -type d -o -regextype egrep -iregex '(.*.ogg|.*.mp3|.*.wav)' | while read s do rename -v 'y/A-Z/a-z/' "$s" done find -type d -o -regextype egrep -iregex '(.*.ogg|.*.mp3|.*.wav)' | while read n do rename -v 's/ /_/g' "$n" done A French name like this:
Code: Chateau De Sable (imagine accents above the letter a) became this:
Code: ch303242tea_de_sable This is not what I wanted.
Why would the script not descend into a directory after it was renamed?
I'm trying to get more acquainted with the terminal but have run into a problem. I have a flash drive that originally had a name that consisted of numbers and letters. After using the flash drive on Windows recently, I saw that its name had changed and now contains special characters (the name is now �NPM=:�N). It poses no problem when navigating through folders graphically, but because I usually have multiple external drives and the first character of the flash drive name is a special character, I have no idea how to 'cd' to the flash drive from the terminal. So the only solution I see is to either type these special characters in the terminal or somehow cycle through all the folders in /media with the keyboard.
I just found out that I did mistake.I transfer 1 file into the Ubuntu Linux,but that File has a strange character. Take a look at the picture screenshot taken.free image hostingExplanation: 1) The file name is unknown, take a look at the WinRAR Archive (left window)2) The file name recognized in Ubuntu without any name, thus it appeared as Empty (right window: putty program). And via Command Line Interface, it appeared as Question Marks.
how to change (rename, delete) lines from boot list in grub 2, Ubuntu 10.04? For example, when I boot my pc, I have a boot list with options "Ubuntu 10.04", "memtest" and "Windows 7". I want to delete "memtest" line, as I don't need it, and rename "Windows 7" line to, for example, "Windows 117". How can I do that? Where I should look and edit? In old grub it was enough to edit /boot/grub/menu.lst, but in Ubuntu 10.04 there is no such file and other grub2-related files (like grub.cfg) do not contain this info to rename or delete lines. So, I can't figure out what to do.
I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.