Which is the correct preposition to use with rename?
- rename to
- rename as
- rename by
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It only takes a minute to sign up.
Sign up to join this community“Rename A to B” is common and correct. “Rename A as B” is uncommon and correct. I think “Rename A by B” doesn't make sense, and I regard it as wrong.
You can have "Renamed A to B" (most common), "Renamed A as B" (less common) and "Renamed A, B". This last is not common, but is found in other related forms because "A was renamed to B" and "A was renamed B" or "A will be renamed to B" and "A will be renamed B" are all found.
By here would refer to how something was renamed. "A changed his name to B by deed-poll", "Renamed A to B by the mv
command", and so on.