CP Command In Linux + SHOW Transfer Progress 🚀

preview_player
Показать описание
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

Soft links & Hard links

Bash aliases - Guide + examples

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)
Рекомендации по теме
Комментарии
Автор

I love these videos. Always learn something new b

bfipzfy
Автор

"My name is Nick and this is cp" ✍🔥

Axlefublr
Автор

Damn, you got me with the rsync fake out. 👍

tobiasfedder
Автор

Thanks for sharing. over 20 years on Linux and never seen or came across mkcd, brilliant stuff, thanks man.

towesc
Автор

Yo, you gotta make more content man! Yours are so good!

kadanseward
Автор

I love the way you explain everything in detail, and I learn something new from your videos every time even when covering the basics. Thank you and please upload more))

comoyun
Автор

We missed you these weeks, brother. Glad to know you're back on track, I hope everything is well! Thanks for another video!

felipedonadon
Автор

we need you and your beautiful voice back

joseph
Автор

Amazing video! I agree I think that easiest approach for copy progress is rsync. I also love using rsync over ssh to update my server files / etc. rsync options go deep, I can't wait to see your video on it if you make one! ^^

astralchan
Автор

mkcd is a brilliant idea! implemented it for myself as well now
always noticed a slight annoyance in making a directory, then moving to it (by typing out its name again) and then creating some files inside of there. mkcd makes that easier :)

Axlefublr
Автор

Oh, I always used a tar | tar command line to copy directories full of data, but was always frustrated by the lack of a progress indicator (other than see the filenames fill the screen).

MattKasdorf
Автор

When I've seen the option `-b` I was like "That's some -bs! I always had to struggle with loops and `sed` in my scripts to achieve that!" I was super happy until I realized that this option is not POSIX. I like my scripts to be portable because I sometimes use them on some weirs OSes. Could you consider distinguishing POSIX options in your videos?

eloniusz
Автор

you also must have to make a video "how to extract .tar file and install it " that will be helpful

chdbeor
Автор

7:02 So it's not just me, the "source" section of yt videos has disappeared, right?

yan-amar