Questions tagged [rename]
119 questions
2
votes
2 answers
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 hello.txt and goodbye.txt
This is the command I am…

user374987
- 55
- 1
- 6
2
votes
3 answers
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 files by replacing word in file name?
but…

user3783243
- 99
- 1
- 10
2
votes
3 answers
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 step is to add the name to the domain…
user35213
2
votes
3 answers
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 of the ways the share is backed up is via a…

user3408072
- 21
- 1
- 2
2
votes
4 answers
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 them all using
find * -type f -name'* .*'
but how…

Rich
- 945
- 1
- 6
- 15
2
votes
1 answer
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 part of the folder name
essentially I'd like to…

sandyscott
- 213
- 3
- 7
2
votes
4 answers
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 ABCTRADING. Split DNS would be used.
The site…

ewwhite
- 197,159
- 92
- 443
- 809
2
votes
1 answer
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 hostname for an existing MySQL installation?

romandas
- 3,302
- 8
- 39
- 44
2
votes
3 answers
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 have also joined the domain as member server and…

dasko
- 1,244
- 1
- 22
- 30
2
votes
2 answers
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 images are .jpg and others are .JPG.
Is there a way…

dannymcc
- 2,717
- 10
- 48
- 72
2
votes
1 answer
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.) and then I can run this script:
USE…

DaniellaMercuryFan
- 249
- 1
- 8
- 17
1
vote
0 answers
Can I rename a Windows failover cluster virtual network name AD object
I have a new Windows 2019 Failover Cluster. I enabled the Automatic Cluster Aware Update feature, and this is functioning correctly. It created a Computer object in AD called CAUBORG6cx. Am I able to rename this (and others autocreated for other…

Braedon King
- 33
- 1
- 4
1
vote
2 answers
Change first character pattern in a file name without changing that same pattern elsewhere in the file name
On a Linux server I have a directory full of files with digits for names. Some of the files start with two zeros such as 00305005. I am writing a bash shell script and one of the steps is to rename all of the files that start with 00 so they start…

DavevaD
- 23
- 6
1
vote
1 answer
Rename a linux user (and their home folder) with Ansible
I have a linux user with various folders and files in their home:
User: foo
/home/foo/somefolder
I want to rename this user and move their home directory to end up with:
User: bar
/home/bar/somefolder
I would do this by hand with
sudo usermod…

Worp
- 327
- 1
- 4
- 15
1
vote
1 answer
Rename Files in Folders
I am using windows server 2016 and I am facing a problem.
We have been making some changes and I am now in need of having a folder that whenever a file(in this case a specific type (.msg)) is placed inside the folder the file has to be renamed with…

Alexandre Araújo
- 11
- 2