Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Thank you for your quick response. what is the difference between cp and mv? if I use mv command then will I need to use command to remove? Commented Apr 17, 2020 at 15:12
  • @Bashabi the mv command changes the files location - how the actual filesystems implement that move will depend on the actual file systems, but on unix like systems the mv command deals with the actual underlying processes, and the file disappears from the original location and appears in the new location. cp actually copies the file so you end up with two actual copies of the file on the filesystem. hope that helps Commented Apr 17, 2020 at 20:03
  • @santosh-garole I removed the bit about cp --help as that doesn't work on all *nix - just typing cp without arguments will cause the system to give some sort of usage, but I wasn't sure how to word that. Thanks for your edit. Commented Apr 17, 2020 at 20:18