Skip to main content
8 events
when toggle format what by license comment
Oct 3, 2022 at 15:37 comment added Jonathan Hartley cp -rp SRC DEST && rm [-rf] SRC is a single line.
Jan 24, 2020 at 11:57 comment added 0xc0de So cp -r --preserve=all is the best I can get?
Feb 5, 2018 at 5:02 comment added αғsнιη there is no AFAIK, only option is using rsync with --remove-source-files option to delete files only but this will not delete directory itself, so you need do directory deletion too after that.
Feb 5, 2018 at 4:55 comment added Moon Yes. I am more like looking for a single line mv alternative if available.
Feb 5, 2018 at 4:48 comment added αғsнιη Yes, this is what cp does, you need do a deletion after copy.
Feb 5, 2018 at 4:47 history edited αғsнιη CC BY-SA 3.0
added 57 characters in body
Feb 5, 2018 at 4:34 comment added Moon It will leave the original directory as-is which needs to be deleted too
Feb 5, 2018 at 4:24 history answered αғsнιη CC BY-SA 3.0