Questions about renaming files
1
vote
1answer
51 views
How to rename multiple files? [duplicate]
I'm trying to move some files to another folder that already contains older files with the same name. Nautilus asks me every time to rename the duplicate files and they're too much to rename them ...
2
votes
0answers
19 views
How to tab to next file when renaming?
If I am renaming a bunch of files in Nautilus quickly, when I hit Enter the file jumps to its proper place alphabetically. But that means I have to go back and find the next file I wanted to rename.
...
2
votes
2answers
53 views
Pattern based, batch file rename in terminal
I need to rename the following:
file_001_loremipsum.png
file_002_dolor.png
file_003_sit.png
file_004_amet.png
file_105_randomness.png
into
upl_loremipsum.png
upl_dolor.png
upl_sit.png
upl_amet.png
...
12
votes
2answers
391 views
Batch rename files to lowercase
Is there a way to rename all files in a directory to lowercase|uppercase?
I am looking for a oneliner command.
I loved TotalCommander's alt+f7, now I need that functionality in the Terminal
1
vote
1answer
44 views
Rename files in group
I've folder and file structure like
Folder/1/fileNameOne.ext
Folder/2/fileNameTwo.ext
Folder/3/fileNameThree.ext
...
How can I rename the files such that the output becomes
...
1
vote
1answer
20 views
renaming files with conversion from hex
I want to rename the below files, such that the first 4 chars and last 7 chars are removed, the remaining chars to be converted to decimal, while rename.
Example if the filename is 0030002345678.txt, ...
1
vote
1answer
36 views
Removing a file extension upon copying
I have a question which is super simple, but I just can't wrap my head around it. Regarding the following command line:
for foo in *.dist; do cp $foo `basename $foo .dist`; done
I know it takes all ...
2
votes
2answers
61 views
How to rename an application so as to affect alphabetical order of right-click “open with” applications list?
I've recently switched my default pdf viewer from acroread to qpdfview; for (serious, duplex-multipage) printing, though, I still prefer Evince (to both acroread and qpdfview).
To quickly open a pdf ...
1
vote
0answers
67 views
Filesystem Label Rename
I'm getting a strange error quark 11 on renaming my filesystems on Ubuntu 12.10 64. I'm sure 100% I've already done it in the past without issues using the disk utility. Maybe some recent upgrade or I ...
0
votes
0answers
29 views
Safely change name of /home/username? [duplicate]
Possible Duplicate:
How do I change my username?
I am using Ubuntu 12.04. I wanted to change my username. I followed the steps here
...
0
votes
1answer
47 views
enabling volume renaming in Quantal
I partitioned my vaio with ubuntu 12.10 (Simple Gnome environment) so that I have 2 separate volumes for folders and file keeping (call it a long paranoid windows using effect :)). These two volumes ...
1
vote
3answers
215 views
Replace All Colons From Filenames With Terminal
I have a GB's worth of music on my HDD that was formatted with EXT4. I want to move these files to a FAT formatted HDD partition. However, I can't move most of my files because they have ":" in the ...
5
votes
1answer
261 views
A program/command to help translate multiple file names
I have hundreds of files with different names that I want to translate into a different language.
Is there an application/CLI action that would allow me to copy all this names as in a list/table and ...
2
votes
2answers
100 views
How to rename more than one files in ubuntu?
I have so many images more than 100 in a folder such as:
apple.jpg
grapes.jpg
orange.jpg
....
I want to rename all of them at once with ascending order numbers such as:
1.jpg
2.jpg
3.jpg
....
...
1
vote
2answers
85 views
How can I remove a string of text from a files name?
Following this question I exported various SVGs to PNGs, but there is a little problem, all files include in their name the extensions .svg and .png as in file.svg.png.
Now what I'd like to know is ...
3
votes
1answer
128 views
Rename - what does s// vs y// mean?
The man page (http://manpages.ubuntu.com/manpages/dapper/man1/prename.1.html) gives two examples:
rename ’s/\.bak$//’ *.bak
rename ’y/A-Z/a-z/’ *
So it's either s or y and then ...
2
votes
3answers
98 views
Trying to do a batch rename, can't figure out the proper RegEx
I'm trying to rename my movie collection. All of the files are currently named using dots instead of spaces, i.e. Men.in.Black.avi. I want to replace all of the dots with spaces which isn't terribly ...
4
votes
4answers
418 views
How to rename files with count?
I have a directory like this:
randomized_quad015.png
randomized_quad030.png
randomized_quad045.png
randomized_quad060.png
randomized_quad075.png
randomized_quad090.png
randomized_quad1005.png
...
1
vote
1answer
136 views
Rename localhost folder. Gives empty screen
I'm trying to rename my apache2 localhost folder.
I have already gone to /etc/apache2/sites-enabled/site-name
and changed the following lines in the Document:
DocumentRoot /home/user/public_html
...
1
vote
2answers
538 views
Rename files by regexp in command line
I do a mistake when trying to move files from one location to another. Now all files are moved, but there is a * concatenated at the end of all names.
How do I remove all *s from end of file names ...
2
votes
3answers
261 views
Change command name in terminal [duplicate]
Possible Duplicate:
How to add an alias to a command in terminal?
I use the sublime text 2 text editor for developing in Ubuntu. When I want to open a file form the command line, I need to ...
3
votes
2answers
668 views
How do I change a document's extension / file extension / file format?
In Windows there's an option to view extensions for known file types. When I enable that option I see all the files with their respective extension; for example an mp3 music file is: name.mp3
If I ...
1
vote
3answers
452 views
How to rename partitions in the system?
I migrated from windows 7 to Ubuntu 12.04. Two of my drives were named in Windows. But two drives had the default name. Now in Ubuntu the partitions which had default names in Windows are named 107 GB ...
0
votes
2answers
277 views
How to rename and move thousands of files at once?
I have many files that i want to move into folders, their names are something like this dir1/dir2/dir3/name_of_file.ex and then maybe another is called /dir4/name_of_file2.xe
Is there anyway of ...
7
votes
3answers
1k views
How do I rename files without a right-click?
I am a new user to Linux and am using Ubuntu 12.04. I would like to know if there is any way to rename files by clicking on file name and not using right click.Can anybody please help me with this?
2
votes
2answers
1k views
Why is it possible to convert a file just by renaming its extension?
When you rename files into a different, most of the times it does not work. But, suppose you have a .png file, you can just rename "image.png" to "image.jpeg" or "image.gif", it automatically gets ...
12
votes
2answers
577 views
How can I rename items in places I don't own, like / , and why shouldn't I?
I get a Permission denied message when trying to rename files and folders in places like /, /usr, and other people's home directories. I'm an administrator. How can I do this?
Also, I've heard that ...
4
votes
0answers
562 views
How can I rename a folder using the terminal? [duplicate]
Possible Duplicate:
Whats the simplest way to edit and add files to “/var/www”?
I need to rename it in the terminal because it is in the root directory in Lubuntu.
I have a ...
0
votes
2answers
632 views
How would I batch rename a lot of files using command-line?
I have a problem which I am unable to solve: I need to rename a great dump of files using patterns. I tried using this, but I always get an error.
I have a folder, inside with a lot of files. Running ...
4
votes
3answers
364 views
Batch rename directories?
I have several directories with the format of the year, month, and day followed by a description of the event. For example: "2012 05 26 - EventA", "2012 05 26 - EventB". What I would like to do is ...
0
votes
2answers
79 views
Rename leaving trailing character
this one should be simple for anyone who knows the correct way to escape.
I'm attempting to batch rename a few hundred files that had \u0026amp; pushed into
the file names instead of and or &. I ...
2
votes
1answer
461 views
How to rename Ubuntu One folders? Locked by syncdaemon?
tl;dr: Does Ubuntu One detect renamed synced folders?
I'm trying to rename a large synced folder ('Sync locally' checked) outside of Ubuntu One, but still inside the home folder on Windows. ...
1
vote
1answer
338 views
F2 to rename file open terminal
I am running Ubuntu 11.10 with Gnome-shell 3.2, and i may have done something wrong (probably with dconf or gconf).
But now pressing F2 within nautilus opens a terminal, and Shift+F2 do the rename ...
0
votes
2answers
163 views
Turn off automatic file extension when renaming files?
In Nautilus I tried to rename a .desktop file, but Unity (or is it Gnome? I suspect it's Unity but please correct me if I'm wrong) then renamed the file to end with .desktop.desktop - not what I ...
1
vote
2answers
182 views
renaming a large tree of “folder_names” to “folder names”
A friend of mine took the liberty to remove all white-spaces " " in the foldernames on our shared drives and substitute them with the underline character "_" . The filenames are unaffected, and the ...
0
votes
1answer
242 views
how to tag a compilation album contains multiple artists on each track?
I have a huge collection, Currently my music like this:
Music
├── Album 1
│ ├── Track 1 (Artist 1 , Artist 2)
│ ├── Track 2 (Artist 2, )
│ ├── Track 3 (Artist 3 , Artist 2, ...
2
votes
1answer
375 views
Rename USB stick appends nA to name
I try to rename a usb stick (i.e. give it a new label). Both using gparted and mlabel I get following behaviour: The rename works, but the string "nA" is appended to the name (it is less than 11 ...
4
votes
2answers
3k views
Is there a way to rename an external hard drive?
I'm using Ubuntu 11.10 and I have a couple of WD external drives. The problem is, they all show up in the file manager as "Elements" which can get confusing. Is there a way to rename one or both of ...
0
votes
1answer
466 views
Create a batch rename srcipt in python?
Firstly, this question was made as a follow up of my previous question: How to batch rename files with "variables"?. I'm just restating it considering Sergey's recommendations.
I use xmbc ...
1
vote
5answers
3k views
How to batch rename files with “variables”?
I use xmbc to view my tv shows. Before I began using xmbc, I batch downloaded the first few seasons of "Bleach". What can I say, I'm an anime fan ;-). These are named: "bleachxx.mp4" where xx is the ...
2
votes
0answers
158 views
How can I stop Banshee from renaming files during a sync? [closed]
Currently I have sync set automatically and to transcode my flac files into mp3.
For multi-disc albums I have my tracks sometimes like "1-01 First Song First Disc.flac" and "2-01 First Song Second ...
2
votes
1answer
492 views
How to batch remove bad character from file-names?
I have files that had Slovak characters in them I copied them to my Ubuntu now they have these weird symbols in them, anyone knows how would I remove these character?
3
votes
1answer
231 views
How do I mv or cp a *.u1conflict file [closed]
Ubuntu One is putting files in conflict while I'm working on them. The original file is gone and only the conflict file remains. To make matters worse, I can't mv, cp the file to the original name. If ...
21
votes
7answers
14k views
Batch rename files
One of the ways I quickly rename files in Windows is
F2 > Rename > Tab (to next file) > Rename ...
But in Ubuntu/Nautilus, I cant tab to next file. But being on Linux, I think there must ...
8
votes
2answers
25k views
How do I rename a directory via the command line?
I have got the directory /home/user/foo and I want to rename it to /home/user/bar. How can I do this in a terminal?
1
vote
2answers
243 views
How to highlight only file name when renaming file in Krusader?
When I renamed files (by F2) in Krusader on Ubuntu 10.10, only the file name got highlighted for renaming, not the file extension. After I upgraded to Ubuntu 11.04, the whole file including extension ...
4
votes
1answer
214 views
File are being deleted after renaming [closed]
Renamed files dissapears from Ubuntu One Folder. I had to move files from U O to some temp location, rename them and upload them back. Is there a special procedure for files renaming?
7
votes
7answers
883 views
How can I change all files prefixes in one command?
I need to change the postfixes of all files (all the same .JPEG) to .jpeg (Capital vs. lower case).
Is there a quick way of doing so?
0
votes
2answers
200 views
How can I move compilation albums into a “Various Artists” folder?
Currently my music is sorted like this:
Music
├── Artist 1
│ ├── Album 1
│ └── Album 2
├── Artist 2
│ ├── Album 3
│ ├── Album 4
│ └── Album 5
├── Artist 3
│ └── Album 5
├── Artist 4
│ ...
4
votes
4answers
3k views
Renaming multiple files by adding a string to the beginning
I have a question concerning the renamining of multiple files in a folder.
For about 200 files I would like to add the String "1_" to the beginning of all filenames.
The filenames are for example ...



