diff --git a/slides/linux_commands.qmd b/slides/linux_commands.qmd index 8bb695d..0df5c51 100644 --- a/slides/linux_commands.qmd +++ b/slides/linux_commands.qmd @@ -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 ```