MV Command:unable to remove Target:is a director

Source: Internet
Author: User

MV Command:unable to remove Target:is a directorthis are somewhat simple as long as we understand the concept. MV or move does not actually move the File/folder to another location within the same device, it merely replaces the point Er in the first sector of your device. The pointer (in Inode table) would be moved and nothing was actually being copied. This would work as long as you stay within the same media/device.

now, when do you try-to-move files from one device to another (/dev/sda1 to/dev/sdb1) you'll run into "inter-device move Failed, unable to remove target:is a directory "error. This happens when MV have to actually move your data to another device, but cannot remove the inode/pointer, because if it Did then there would be no data to fall back to, and if it didn ' t then MV Operation was not really complete because we'll End up with the data in source. Damned if you does and damned if you don't, so it's wise not to does it to begin with!

In such situation CP are best. Copy your data over and then remove your source manually.

Cp-r/media/usb2/clone//MEDIA/USB1

MV Command:unable to remove Target:is a director

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.