In this video we're gonna talk about "cp", which is short for copy and is another essential command that we use to... well, copy stuff from one place to another - one or more files or entire directory structures all at once. Oh, and since I've never met a single person who "straight up" knows how to display progress for a large file operation - I'm gonna show you a few different ways to do it at the end, so stick around.
Related Videos:
Globs / Filename Expansion
https://youtu.be/-yLsYhsh9Cw
Soft links & Hard links
https://youtu.be/11q-mj3CHmo
Bash aliases - Guide + examples
https://youtu.be/cPVVQP8va_M
Chapters:
0:00 - Intro
0:54 - Command syntax
1:14 - Basic examples
2:36 - Copy multiple files
2:45 - Target flag -t
3:16 - Copy directories -r
3:58 - Interactive mode -i
4:36 - Force flag -f
5:00 - No overwriting -n
5:15 - Update newer -u
5:37 - Create backups -b
5:55 - Custom suffix -S
6:14 - Create symlinks -s
6:34 - Create hard links -l
7:30 - Dereference -L
7:40 - No dereference -P
7:48 - Archive flag -a
8:05 - Preserve option
8:23 - Verbose flag -v
8:54 - Query watchers (1)
9:19 - pv / progress / bar / gcp (2)
9:52 - rsync -rP (--progress) (3)
Тэги:
#linux_tutorial #linux_command_line_for_beginners #copy_command #cp_progress_bar