Ask Your Question
1

What is the process for transferring files from the directory a/b/* to a/ and removing directory b?

asked 2023-06-30 17:41:32 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-30 18:05:02 +0000

devzero gravatar image
  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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-30 17:41:32 +0000

Seen: 12 times

Last updated: Jun 30 '23