Announcement
Collapse
No announcement yet.
my files: root/home/bumpy/home/bumpy need revision
Collapse
This topic is closed.
X
X
-
That is a potential dotglob trap.Originally posted by oshunluvr View PostOh sorry, I forget mv doesn't work with -R, try
mv /home/bumpy/home/bumpy/* /home/bumpy
By default, in bash, the "*" does not match (glob) files/directories that start with "." (hidden files and directories), unless the dotglob shell option is set. I'd run (to be sure):
shopt -s dotglob; mv /home/bumpy/home/bumpy/* /home/bumpy/
You can of course avoid globbing (*) altogether and copy directories:
mv /home/bumpy/home/bumpy /home/
- Top
- Bottom
Leave a comment:
-
Oh sorry, I forget mv doesn't work with -R, try
mv /home/bumpy/home/bumpy/* /home/bumpy
- Top
- Bottom
Leave a comment:
-
Re mv -R /home/bumpy/home/bumpy/* /home/bumpy
Termina; bumpy@peterputer:~$ mv -R /home/bumpy/home/bumpy/* /home/bumpy
mv: invalid option -- 'R'
Try 'mv --help' for more information.
bumpy@peterputer:~$
Can't figure what to pick - please advise
- Top
- Bottom
Leave a comment:
-
By "root" I assume you mean "/"
mv -R /home/bumpy/home/bumpy/* /home/bumpy
should do it
- Top
- Bottom
Leave a comment:
-
my files: root/home/bumpy/home/bumpy need revision
Unfortunately I Ark recovered my backup files to the wrong directory.
Current: root/home/bumpy/home/bumpy
Can't figure out how to move them to root/home/bumpy.
Suggestions would be appreciated!Tags: None
- Top
- Bottom
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: