Sample Header Ad - 728x90

move and make directory

0 votes
2 answers
4117 views
I know its a big classical but I didn't found the exact situation that concerns me I need a mkdir+mv command that can be invoked like that :
mvdir /home/user/Documents/irs.pdf /mnt/work/45/223/insight/irs1970.pdf
Exactly like a normal mv command works, just with a creation of path instead of a no such file or directory Considering that work/45/223/insight/ doesn't exist and need to be created All other command that I've found can't be invoked like that, needs some more informations, need to distinguish the path and file ourself, or something Attempt: mkdir -p /mnt/work/45/223/insight && mv /home/user/Documents/irs.pdf /mnt/work/45/223/insight/irs1970.pdf
Asked by aaa (177 rep)
Nov 27, 2022, 10:39 AM
Last activity: Jan 1, 2023, 10:22 PM