Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Open the terminal or command prompt.
  2. Navigate to the parent directory that contains the directory "a" and "b".
  3. Use the following command to move files from directory "a/b" to directory "a":
mv a/b/* a/
  1. Use the following command to remove directory "b":
rm -r a/b/

Note: Be careful while using the "rm" command as it can permanently delete files and directories. Make sure you have a backup of the files if needed.