accidentally moved everything in user home directory how to undo a script
I was trying to move files from one dir to another and I missed up my home director can someone help me undo this script. everything in my home dir now put in dir called myfiles. I am on Ubuntu 20.04
mv ~/my_files/master_cs/jv/foundation_cls/ -v !("~/my_files/master_cs/jv/foundation_cls/cop_5007") ~/my_files/master_cs/jv/foundation_cls/code_snipt
If I am getting your question right then you can simply move back directories to home folder by opening your teriminal and doing this:
cd ~/my_files
mv * ../