I was wondering is there another way of renaming a file aside from using
mv in linux?
For example changing
/home/usr/blah.txt to something like
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
This goes to show that you need to think about how you ask the question. Everybody - including me - got your question wrong initially
You could use qmv to bulk rename interactively using an editor. It will allow search/replace and also cyclic renames.
What mv really accomplishes at the driver level is close to this:
ln source target unlink source
So, you can do that. This, however assumes the optimized scenario where source & target reside in the same filesystem. If not, you will have to use cp instead of ln. Be sure to make that a
Update in response to (paranoid) comment:
(ln source target || cp -a source target) && unlink source