Skip to content

Commit

Permalink
Added cp to slides
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Sep 27, 2024
1 parent ee85cd7 commit 4c7a7d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slides/linux_commands.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
- `rm -f [file]` - Removes to force remove a file (no undo be careful!).


## `mv`: Move or Rename {.smaller}
## `mv` and `cp`: Move, Rename and Copy {.smaller}
- `cp [source] [destination]` -- Copies a file or directory to the destination.
- `mv [source] [destination]` -- Moves a file or directory to the destination.
- Can also be used to rename a file or directory if the source and destination directories match.
- `mv` can also be used to rename a file or directory if the source and destination directories match.

```{bash}
cp file.txt /new/location/
mv file.txt /new/location/
mv old_name.txt new_name.txt
```
Expand Down

0 comments on commit 4c7a7d3

Please sign in to comment.