Questions tagged [rename]
The rename tag has no usage guidance.
119
questions
65
votes
6
answers
173k
views
How to rename a MySQL database?
How to rename a MySQL database?
The MySQL online manual has said about the RENAME DATABASE command (this documentation page has been removed by Oracle some time ago):
This statement was added in ...
41
votes
6
answers
134k
views
How to rename multiple files by replacing word in file name?
Replace ACDC to AC-DC
For example we have these files
ACDC - Rock N' Roll Ain't Noise Pollution.xxx
ACDC - Rocker.xxx
ACDC - Shoot To Thrill.xxx
I want them to become:
AC-DC - Rock N' Roll Ain't ...
17
votes
4
answers
13k
views
zfs rename/move root filesystem into child
Similar question exists but the solution (using mv) is awful because in this case it works as "copy, then remove" rather than pure "move".
So, I created a pool:
zpool create tank /dev/loop0
and ...
13
votes
7
answers
30k
views
Renaming files in linux with a regex
I had a group of files that I'd like to consistently rename, the files are named things like
"System-Log-01-01-2009-NODATA.txt"
"Something-Log-01-01-2009-NODATA.txt"
And I wanted them as lowercase, ...
13
votes
5
answers
13k
views
Rename files to empty filename in Windows (Vista)
Vista allows files with empty "first name" (for example, ".svn").
However, when I try to remove the filename of an existing file, leaving the prefix, in Explorer or using cmd's 'rename', I fail. How ...
13
votes
4
answers
2k
views
Checklist for changing the hostname of a server [closed]
I want to rename one of my Debian linux servers to give it a more descriptive, role-based name.
Here are the places I know the name will need to be changed:
/etc/hostname & /etc/mailname & ...
11
votes
5
answers
36k
views
How do I rename multiple files by removing characters in bash?
I have to rename multiple files in directory by removing first 5 characters for each filename.
How can I do this i bash/shell? I'm using Ubuntu 11.10. Thanks.
10
votes
3
answers
4k
views
Automating the rename of a SQL Server
We're in the process of replacing our SQL Server and have decided that renaming the server itself is going to be much easier than changing everything else to point to a new name. We found instructions ...
9
votes
1
answer
7k
views
Can Mercurial repositories safely be moved/renamed/etc.?
Can I move the directory a local Mercurial repository is contained in without breaking it, or does it know where it lives and expect it to live there forever? (Coming from SVN with its switch/...
8
votes
1
answer
6k
views
Renaming a TFS Server
Having set-up a TFS server, I subsequently decided to rename the server (it is on a VM so it's been renamed for network purposes). When I now go into TFS Management Console on the server, I'm getting:...
7
votes
2
answers
52k
views
Rename files to add date modified to filename with Windows CMD or simple .TXT
I am attempting to rename a large batch of files to incorporate the dates in the "Date Modified" column from File Explorer into each filename in YYYYMMDD format. I was able to generate a ...
7
votes
2
answers
376
views
AD: Domain migration or renaming?
I've been given the task of listing down important activities with their estimated effort to help choose the best option/solution for the following scenario:
The current domain is named "Domain0" and ...
6
votes
8
answers
3k
views
Renaming a windows 2003 domain?
we currently have an office server running on Windows 2003. The server hosts e-mail (exchange) and active directory. Also we have two client pc's which get their internet connection and their profiles ...
6
votes
5
answers
8k
views
BSD - Remove non-ascii characters from all files in a directory recursively
I'm trying to migrate a bunch (300GB+) of files from a FAT32 drive to my freeNas ZFS filesystem but every command I throw at it (tar,pax,mv,cp) throws an 'invalid argument' when it encounters a non-...
6
votes
1
answer
6k
views
Rename Junk folder in dovecot IMAP server
Being English, I find the terms "Trash" and "Junk" confusing because they mean essentially the same thing. I want to rename these folders on my Dovecot IMAP server to "Deleted" and "Spam" respectively ...
5
votes
1
answer
4k
views
After domain rename - will I need to rejoin all users to the new domain?
I am running a Windows Server 2012R2 Domain Server (ADDS).
The domain is historically from a 2003 server, and is a single Label Domain: e.g.: Contoso
I want to rename it to: Contoso.local (using ...
5
votes
2
answers
7k
views
Using rsync to rename files during copying with --files-from?
Using rsync, how can I rename files when copying with the --files-from argument? I have about 190,000 files, each of which need to be renamed when copying from source to destination. I plan to have ...
5
votes
3
answers
7k
views
Rename a machine after oracle (XE) installation
I am looking for a quick solution for the following problem:
I have one virtual machines (vmware) I want to be able to give to colleagues (copy of the vm). I installed on the machine Oracle XE ...
4
votes
4
answers
12k
views
AWS - Script to create EC2 snapshots and automatically rename them
I'm currently trying to setup a script (using AWS CLI from an Ubuntu server) that will do the following:
Create a snapshot of every existing volume. Those volumes already have a NAME tag (Like ...
4
votes
2
answers
5k
views
Batch rename directories with regex via command line on Linux
I have a folder on the server that contains directories that are created daily and are named by date, like so:
07-06-14
08-06-14
09-06-14
etc.
At some point I decided that a preferred naming would ...
4
votes
2
answers
27k
views
How to clone, disjoin & rename a Windows 2008 R2 VM offline, then rejoin domain online
I have a Windows 2008 R2 domain joined server, which should be cloned as test server in the same domain!
There is an MSSQL 2012 instance and Team Foundation Server 2013 installed, but this shouldn't ...
4
votes
5
answers
569
views
How to rename libc.a back
I am working on AIX 6.1 and inadvertently renamed /usr/lib/libc.a to usr/lib/libc.a_ Just as I renamed I realized my stupid mistake. Almost all of the commands mv, cp, ftp etc ( except cd ) have ...
4
votes
1
answer
8k
views
Renaming Domain Controller Went Weird... Help?
I have a small network with a single domain controller, running Windows Server 2008 R2. All was going well until just now.
I had previously had a Windows Server 2003 DC. I demoted it to a workstation ...
3
votes
7
answers
3k
views
Bulk rename or delete in Linux
I have a bunch (about 10 gigs worth) of files that I need to copy from an external linux disk to a Windows machine. Unfortunately some file-names that contain the ":" character have got into this ...
3
votes
7
answers
20k
views
How to Rename Part of a File Name from a Selection of Files in Windows?
How to Rename Part of a File Name from a Selection of Files in Windows?
I know about the Windows trick where you just select a group of files and upon renaming it will add a sequential number to make ...
3
votes
3
answers
3k
views
how to rename a remote file on linux with script
I would like to have a (bash) script to rename a file on multiple remote linux servers
any idea how to do it?
thanks.
3
votes
2
answers
6k
views
Batch rename removing second letter in filename
I have about 300 .pst files that I have exported from Exchange 2010. Eventually, I'm going to import them into another Exchange/AD environment. In the original environment, the user names are as ...
3
votes
1
answer
10k
views
Something renames files to filename.ext.suspected
I've experienced a very strange behavior on a Debian server. This server runs a lot of website, most of them CMS, mainly WordPress.
And sometimes something renames my files from wp-db.php to wp-db....
3
votes
1
answer
72
views
Renaming files recursively and moving them inside one single directory
I have a project with 500k users in CentOS. The picture file/directory structure was setup like this (yeah... i know):
user/0070/ this is the user ID / 1000, so that all users in the range of [70000-...
3
votes
1
answer
186
views
rename multiple files with unique name [closed]
I have a tab-delimited list of hundreds of names in the following format
old_name new_name
apple orange
yellow blue
All of my files have unique names and end with *.txt extension and ...
2
votes
4
answers
3k
views
How to bulk rename files to remove an extraneous space from before the extension
I have a bunch of files who's filename follows the pattern 'filename.ext'. eg:
filename .ext
I would like to rename all of these to remove the space before the .ext. eg:
filename.ext
I can find ...
2
votes
4
answers
1k
views
Rename Active Directory domain following Windows 2000 -> 2008 migration
I'm working with a site that needs an internal DNS domain rename. It currently has a DNS name of domain.abc.com and NT name of ABC. I'm trying to get to a DNS name of abctrading.com and NT name of ...
2
votes
3
answers
904
views
Regex Replace Append Filename
How can I append characters to a files name in linux, using a regex? I've seen these two posts
https://stackoverflow.com/questions/6985873/change-names-of-multiple-files-linux
How to rename multiple ...
2
votes
3
answers
4k
views
Batch rename files that end in a dot
I have a large unix fileserver, with a single large SMB share. It serves to Mac, Linux and windows clients. A large portion of the files on this box have been migrated there from a Mac Xserve. One ...
2
votes
2
answers
337
views
Batch rename via command line?
I have a Media Temple (dv) server which I am setting Magento up on.
I have uploaded a few thousand images to the /media/import directory that the client has provided me with. The problem is, some ...
2
votes
3
answers
6k
views
Add additional name to a Domain Controller
I am looking to rename a Domain Controller. Functional level and everything else means I can use netdom to carry out the process. Looking a the technet article on the subject I can see the first ...
2
votes
1
answer
3k
views
Rename folder using wildcard windows
I've got a piece of software that includes its own backup utility, but it generates folder names with the current date and time appended. I'd like to write batch script that will remove the date/time ...
2
votes
3
answers
9k
views
Migrate to new server 2008 file server but keep old server name (under domain AD)
i am moving to a new file server under Server 2008 Standard 32bit edition. I will refer to the older server as just "server", the new one i named as server2.
i have updated server2 and patched it. I ...
2
votes
1
answer
1k
views
How to rename database without first stopping SQL instance to flush connections
Is there a way to force a database into single user mode so a script can be run to rename databases? I find I have to Restart the instance of SQL (to force off any connections from a web app, etc.) ...
2
votes
2
answers
99
views
Find / Rename command not catching the filenames I want it to find
I have these two files in my home directory -
hello_newest.txt
goodbye_newest.txt
I want to rename them so that the "newest" part of the filename is removed completely, so that they would recome ...
2
votes
1
answer
1k
views
Are there any issues with changing the hostname on an existing MySQL server?
I know that changing the Windows hostname on an existing MS SQL server can cause problems if you don't update certain things within MS SQL. Are there any similar issues with changing the Windows ...
1
vote
6
answers
15k
views
How can a rename a share on Windows Server 2003?
We would like to rename a share - not the folder, just the name of the Share itself - on a Windows 2003 Server. If I right-click on the folder name and go to the properties dialog, I can see the share ...
1
vote
6
answers
3k
views
How to rename machines after image install
Today I am deploying 20 brand new Dell workstations. These will all be for public use at a local library and will be replacing 20 older workstations, which will be moved to another branch of the ...
1
vote
2
answers
3k
views
Renaming of domain in Active Directory with Certificate authority
i have domain, washington.example.com on Windows Server 2012 R2. For intergations with office 365, my organization, decided to rename domain name from washington.example.com to example.com. My ...
1
vote
2
answers
7k
views
After Domain Rename - gpfixup warning - Error 80070057
We run a simple AD (1 DC Server 2012)
We had to rename our domain name from a single label domain to: lan.domain.com
Following the step by step, all went well, until the last step (that worked ...
1
vote
2
answers
100
views
php scripts run only after renaming
That's really strange :So after i upload a folder with php files on another service,and try to execute them from a browser,i get 500 error.If i open a file in a text editor,save it with different name ...
1
vote
3
answers
9k
views
Recursively rename files using find and sed
I want to go through a bunch of directories and rename all files that end in _test.rb to end in _spec.rb instead. It's something I've never quite figured out how to do with bash so this time I thought ...
1
vote
6
answers
5k
views
Linux renaming files to add _00 after filename before extension
What am I missing here, this seems so simple yet I cant get it to work.
I have a directory with files like AGPNDRAH01.jpg
I want a directory with files like AGPNDRAH01_00.jpg
rename 's/(\w+).jpg\$1\...
1
vote
4
answers
4k
views
Renaming cron files
Will renaming a cron file in /var/spool/cron/ mean that the contents of the cron file will not be executed anymore? Or will all files in /var/spool/cron/ be executed, no matter the name of the file.
1
vote
1
answer
2k
views
Find and rename files removing suffix
I'm using the following command to move all files (non-recursively) ended in _128.jpg into the 128x160 subdir. This works great.
find . -iname '*_128.jpg' | xargs -I '{}' mv {} 128x160
But I also ...