mv filename with {old,new}
$ mv some/deeply/nested/thing/{old,new}.txt
will rename the file old.txt to new.txt without you having to type the whole path twice.
Written by Jon Druse
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#