Questions tagged [pv]

Pipe Viewer, or pv, is a Unix tool for monitoring pipelines and the progress of data through them.

64 questions
59
votes
3 answers

Is it better to use cat, dd, pv or another procedure to copy a CD/DVD?

Background I'm copying some data CDs/DVDs to ISO files to use them later without the need of them in the drive. I'm looking on the Net for procedures and I found a lot: Use of cat to copy a medium:…
user129371
16
votes
1 answer

How to get an average pipe flow speed

If myfile is increasing over time, I can get the number of line per second using tail -f | pv -lr > /dev/null It gives instantaneous speed, not average. How can I get the average speed (i.e the integral of the speed function v(t) over the…
user123456
  • 4,758
  • 11
  • 52
  • 78
12
votes
2 answers

How to show progress with GPG for large files?

I need to encrypt a large file using gpg. Is it possible to show a progress bar like when using the pv command?
Antoine
  • 1,021
  • 1
  • 12
  • 13
11
votes
1 answer

Creating a bootable Linux installation USB without unetbootin

I want to install Scientific Linux from USB. I don't know why unetbootin doesn't work but I am not curious to find out: after all, I transferred to Linux from Windows to see and learn the underlying procedures. I format my USB drive to FAT32 and run…
makhlaghi
  • 681
  • 4
  • 9
  • 18
10
votes
5 answers

pvcreate: Can't use /dev/sda: device is partitioned

I'm currently installing arch linux and when I try to create a physical volume it gives me this error. Can not use /dev/sda: device is partitioned What is this error and how can I get rid of it? PS: I have formatted the disk with mkfs.ext4 /dev/sda
dead101
  • 101
  • 1
  • 1
  • 3
6
votes
5 answers

Using pv with md5sum

I used md5sum with pv to check 4 GiB of files that are in the same directory: md5sum dir/* | pv -s 4g | sort The command completes successfully in about 28 seconds, but pv's output is all wrong. This is the sort of output that is displayed…
EmmaV
  • 3,985
  • 4
  • 30
  • 61
6
votes
3 answers

With the command pv it is possible to clone a drive, how do I mount it?

I was able to backup a drive using the following command. pv -EE /dev/sda > disk-image.img This is all well and good, but now I have no way of seeing the files unless I use this command pv disk-image.img > /dev/sda This, of course, writes the data…
tisaconundrum
  • 195
  • 1
  • 7
6
votes
1 answer

Pipe a command to pv but hide all the original command's output

I'm trying to use pv, but I want to hide the command I piped in's output while still be able to see pv's output. Using command &> /dev/null | pv doesn't work (as in, pv doesn't receive any data). command produces output on both standard output and…
Lee Ikard
  • 95
  • 1
  • 7
5
votes
1 answer

How track progress of a command in a pipe if only the size of its input is known in advance?

I would like to track progress of a slow operation using pv. The size of the input of this operation is known in advance, but the size of its output is not. This forced me to put pv to the left of the operation in the pipe. The problem is that the…
Zoltan
  • 446
  • 5
  • 16
5
votes
2 answers

Define physical volume inside non-partitioned disk

I've been able to define a physical volume (LVM) in two ways: Creating a 8e (Linux LVM type) partition and then # pvcreate /dev/sdb1 Usign pvcreate directly using a non-partitioned disk and then # pvcreate /dev/sdc <-- note the lack of number…
arle
  • 53
  • 4
5
votes
1 answer

Why doesn't sed exit immediately after writing the output?

I ran sed on a large file, and used the pv utility to see how quickly it's reading input and writing output. Although pv showed that sed read the input and wrote the output within about 5 seconds, sed did not exit for another 20-30 seconds. Why is…
5
votes
1 answer

How to use pv with dd?

I'm trying to use dd with pv to write an iso to a usb drive. I did: iso="myiso.iso"; dd if="$iso" bs=1M | pv --eta --size $(ls -l "$iso" | awk '{print $5}') --progress --bytes --rate --wait > /dev/sdg Following this…
cat pants
  • 753
  • 5
  • 23
  • 38
4
votes
1 answer

Multiple pv order

I have a script on a Linux machine with a fancy pv piped to a second pv that count a subset of the outputted lines. Here's the script: max=1000 for (( i=0; i
Syco
  • 198
  • 5
4
votes
2 answers

How can I run multiple pv commands in parallel?

I want to run a sequence of command pipelines with pv on each one. Here's an example: for p in 1 2 3 do cat /dev/zero | pv -N $p | dd of=/dev/null & done The actual commands in the pipe don't matter (cat/dd are just an example)... The goal being…
Josh
  • 8,311
  • 12
  • 54
  • 73
4
votes
2 answers

How to use pv to show progress of openssl encryption / decryption?

I need to encrypt and be able to decrypt files with openssl, currently I do this simply with: openssl enc -aes-256-cbc -salt -in "$input_filename" -out "$output_filename" and the decryption with: openssl enc -aes-256-cbc -d -salt -in…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
1
2 3 4 5