tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Tips And Tricks > Linux > How to move All Sub Directories to another Directory

How to move All Sub Directories to another Directory

Author: Venkata Sudhakar

We can move only sub directories in a given directory using (*/) regex. Similary we may use specific word prefix/suffix regex patterns to move only the required sub directories.

The below command moves all subdirectories under bethecoder folder to venkat

mv /home/ec2-user/bethecoder/*/ /home/ec2-user/venkat

 
  


  
bl  br