In RHEL 9,
cp -a /somedir/. .executes to copy all files in 'somedir' directory (not the directory itself) to the current directory.
mv /somedir/. .though yields the error 'cannot move: Device or Resource busy'.
mv /somedir/ .and
mv /somedir .result in moving directory 'somedir' to the present directory.
Why does the second command result in an error?
Without the use of
*is there a way to move only the contents of directory
somedirand not the directory itself to the current directory using
What is the difference between
/path/to/filein Linux specifically RHEL and RHEL like distributions?