https://github.com/donuts-are-good/copy
copy is not `cp`
https://github.com/donuts-are-good/copy
cli copy coreutils cp donut-utils go golang
Last synced: 3 months ago
JSON representation
copy is not `cp`
- Host: GitHub
- URL: https://github.com/donuts-are-good/copy
- Owner: donuts-are-good
- License: mit
- Created: 2023-05-10T02:50:42.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-12T22:26:58.000Z (almost 3 years ago)
- Last Synced: 2025-02-14T20:56:36.352Z (12 months ago)
- Topics: cli, copy, coreutils, cp, donut-utils, go, golang
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
  
# copy
copy is like `cp` but with a progress indicator and visual output
## usage
here's how to use `copy`:
```
copy -r /path/to/source /path/to/destination
```
`source` is the file or directory you want to copy, and `destination` is where you want to copy it to.
the `-r` flag means you want to copy recursively.
if the `source` is a directory and the `-r` flag is used, all its contents including subdirectories will be copied to the `destination` directory.
## examples
### copying a single file
to copy a single file, use the path to the file as the source and the path to the destination directory (or the full path including new file name) as the destination.
```
copy /home/user/documents/file.txt /home/user/desktop
```
this will copy `file.txt` from the `documents` directory to the `desktop` directory.
### copying a directory
to copy an entire directory, use the path to the directory as the `source` and the path to the parent of the destination directory as the `destination`, along with the `-r` flag.
```
copy -r /home/user/documents /home/user/desktop
```
this will copy the `documents` directory and all of its contents to the `desktop` directory.
## license
MIT License 2023 donuts-are-good, for more info see license.md