Top "Mv" questions

mv is the Unix command to rename or move a file or directory.

Is it possible to move/rename files in Git and maintain their history?

I would like to rename/move a project subtree in Git moving it from /project/xyz to /components/xyz If …

git rename mv
Is there a way to make mv create the directory to be moved to if it doesn't exist?

So, if I'm in my home directory and I want to move foo.c to ~/bar/baz/foo.c , but …

linux macos unix mkdir mv
How to move or copy files listed by 'find' command in unix?

I have a list of certain files that I see using the command below, but how can I copy those …

unix find cp mv
How to rename with prefix/suffix?

How do I do mv original.filename new.original.filename without retyping the original filename? I would imagine being able …

bash rename filenames prefix mv
What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another

Hi I wanted to know why I am getting this error. I have this directory called mock, which inside has …

bash unix command-line cp mv
Spring mvc Ambiguous mapping found. Cannot map controller bean method

I am trying to build an app which can list some values from the database and modify, add, delete if …

java spring maven mv request-mapping
How to use 'mv' command to move files except those in a specific directory?

I am wondering - how can I move all the files in a directory except those files in a specific …

linux mv
Angular design pattern: MVC, MVVM or MV*?

Angular 1.x (AngularJS) was following more or less the MV* design principle because of its two-way data binding functionality. Angular2 …

angular model-view-controller design-patterns mvvm mv
Undo git mv (rename)

What is the right way to undo a rename in git, like: git mv file1 file2

git rename undo mv
Linux command to move a directory

My old and new directory have same folders and files inside. I try: mv -if old/* new/* and get error …

linux command-line mv