I need to make a copy of my home directory and place that copy in the same home directory. The exit code of the command must be
0. Currently, my home directory does not contain any other directories.
Is there a better way than the following? (pwd is the home directory)
mkdir /tmp/temp && cp * /tmp/temp && mv /tmp/temp .