首页 > 其他分享 >os: pv 命令 - 显示数据处理的进度条

os: pv 命令 - 显示数据处理的进度条

时间:2023-07-12 14:57:37浏览次数:32  
标签:pv show -- 进度条 bytes output os size

os: pv 命令  -  显示数据处理的进度条

 

 

 

 

一、pv  命令

 

  1、pv  命令功能:显示数据处理的进度条

 

  2、pv  命令安装:

    sudo  apt  install  -y    pv

    dnf  install  -y     pv

 

  3、pv  命令说明:

[wit@on tmp]$ pv --help
Usage: pv [OPTION] [FILE]...
Concatenate FILE(s), or standard input, to standard output,
with monitoring.

  -p, --progress           show progress bar
  -t, --timer              show elapsed time
  -e, --eta                show estimated time of arrival (completion)
  -I, --fineta             show absolute estimated time of arrival
                           (completion)
  -r, --rate               show data transfer rate counter
  -a, --average-rate       show data transfer average rate counter
  -b, --bytes              show number of bytes transferred
  -T, --buffer-percent     show percentage of transfer buffer in use
  -A, --last-written NUM   show NUM bytes last written
  -F, --format FORMAT      set output format to FORMAT
  -n, --numeric            output percentages, not visual information
  -q, --quiet              do not output any transfer information at all

  -W, --wait               display nothing until first byte transferred
  -D, --delay-start SEC    display nothing until SEC seconds have passed
  -s, --size SIZE          set estimated data size to SIZE bytes
  -l, --line-mode          count lines instead of bytes
  -0, --null               lines are null-terminated
  -i, --interval SEC       update every SEC seconds
  -w, --width WIDTH        assume terminal is WIDTH characters wide
  -H, --height HEIGHT      assume terminal is HEIGHT rows high
  -N, --name NAME          prefix visual information with NAME
  -f, --force              output even if standard error is not a terminal
  -c, --cursor             use cursor positioning escape sequences

  -L, --rate-limit RATE    limit transfer to RATE bytes per second
  -B, --buffer-size BYTES  use a buffer size of BYTES
  -C, --no-splice          never use splice(), always use read/write
  -E, --skip-errors        skip read errors in input
  -S, --stop-at-size       stop after --size bytes have been transferred
  -R, --remote PID         update settings of process PID

  -P, --pidfile FILE       save process ID in FILE

  -d, --watchfd PID[:FD]   watch file FD opened by process PID

  -h, --help               show this help and exit
  -V, --version            show version information and exit

Please report any bugs to <[email protected]>.

 

 

 

 

二、pv  命令示例

 

  1、pv  命令:https://linux265.com/course/linux-command-pv.html

标签:pv,show,--,进度条,bytes,output,os,size
From: https://www.cnblogs.com/lnlidawei/p/17547472.html

相关文章

  • Linux系统安全限制:禁用或限制用户ssh登录(sshd_config、hosts.allow、hosts.deny、nolo
        我们知道Linux系统安全性设置有很多方式。常见的有通过firewall防火墙、或者iptables规则实现放行、拦截屏蔽某些特征的网络请求。示例:iptables限制ssh链接服务器    还有一种办法是机房运维常用的权限管控手段:管控服务器登录权限、管控账号执行操作权限。这种手段主......
  • 跨平台GUI开发技术:QT,GTK+, C#(WinForm/WPF), Java(Swing/AWT/JavaFX), Electron, comp
    1.Compose-multiplatformJetbrian推出的跨全平台开发组件技术,android/ios/desktop(win,linux,mac)/web,目前生态完善中,还不够成熟,但有潜力,支持原生接口调用,kotlin作为主要语言。https://www.jetbrains.com/zh-cn/lp/compose-multiplatformhttps://github.com/JetBrains/compose-......
  • os:ubuntu 使用防火墙firewalld
    os:ubuntu使用防火墙firewalld    一、ubuntu22.04安装防火墙firewalld 1、安装防火墙sudo apt install -y  firewalld 2、开启防火墙sudo systemctl start  firewalld 3、开机启动防火墙sudo syst......
  • windwos使用FRP方式
    FRP使用方法流程图如下访问FRP官方项目https://freefrp.net下面是windwos演示进入网站选择客户端下载客户端版本选择windwos是adm64当今绝大部分都是这个操作系统了解压好后主要用到上面这两个东西配置方式打开frpc.ini把里面的配置信息全部删除即可配置方......
  • BOSHIDA DC电源模块过载保护的原理
    BOSHIDADC电源模块过载保护的原理DC电源模块过载保护的原理是通过电路设计和控制算法来实现的,其基本思想是在系统发生过载时,通过控制电路的工作状态和输出特性,实现对输出电流的限制和保护。具体来说,DC电源模块的过载保护主要包括两个方面:一是电流保护,即控制输出电流的大小和稳......
  • ROS 的三种通信方式 2a82329219bf47c9a8f48a534ab31af7
    ROS的三种通信方式注意以下所有代码均基于:ubuntuROSDate18.04LTSMelodicMoreniaMay23rd,2018 May,2023写在最前,ROS1主要有三种通信方式,分别是:话题通信服务通信参数通信话题通信(Topic)话题通信主要是指通过发布和订阅服务的方式,来进行匿名的通信,一方......
  • Microsoft.AspNetCore.Http.Abstractions 2.20 is deprecated
     您想要升级Microsoft.AspNetCore.Http.Abstractions包,您需要注意以下几点:Microsoft.AspNetCore.Http.Abstractions包在ASP.NETCore2.2版本后已经被标记为过时,因为它已经被包含在Microsoft.AspNetCore.App框架引用中12。因此,您不需要单独引用这个包,只需要在项目文件中......
  • API协作难?沟通效率低?试试一体化研发协作平台Apipost
    API管理中存在:API在线异常的发现、跟踪和解决流程过长,信息沟通效率低以及协作难的问题,跟大家分享一个非常棒的解决方案~01.痛点场景在团队协作开发和API管理过程中,API接口变更频繁、变更信息得不到及时同步且同步后沟通效率低,各个环节人员处理问题节奏不统一等等,都是在API开发中......
  • axios基础知识详解
    一、什么是axiosaxios是一个基于Promise的HTTP客户端,用于浏览器和Node.js中发送HTTP请求。它支持各种HTTP请求方法,如GET、POST、PUT、DELETE等,并且可以拦截请求和响应,设置请求超时等功能。它也可以与现代前端框架(如Vue.js、React、Angular等)进行集成。二、如何在Vue.js中使用axios(1......
  • centos7ping不通主机却能够上网时的问题解决方案
       ......