Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

move all files to parent directory

find . -maxdepth 1 -exec mv {} .. ;

this will move hidden files as well.
You will get the message:
mv: cannot move `.' to `../.': Device or resource busy
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #move #files #parent #directory
ADD COMMENT
Topic
Name
5+1 =