time

测量程序的运行时间.

`time’命令将运行另一个程序,并记录该程序使用的经过时间或CPU资源使用时间。
信息可以显示在屏幕上或保存在文件中

语法

  time [option...] command [arg...]

选项



 -o FILE
 --output=FILE
     将资源使用统计信息写入文件FILE

 -a
 --append
    将资源使用信息附加到输出文件中,而不是覆盖它

 -f FORMAT
 --format=FORMAT
     使用FORMAT作为格式字符串,请参阅下面的格式化选项

 --help
     命令行选项的摘要

 -o FILE
 --output=FILE
     将资源使用统计信息写入文件。默认情况下,这个*覆盖*文件,破坏文件的先前内容

 -a
 --append
     将资源使用信息附加到输出文件中,而不是覆盖它。此选项仅适用 `-o' or
     `--output' 选项.

 -p
 --portability
    使用POSIX格式

 -v
 --verbose
     使用内置的详细格式

-V
--version
     打印版本号并退出。

设置输出格式
`time’ 使用“格式字符串”来确定要显示的有关其运行的命令所使用的资源的信息,内置于“time”的默认格式:

%Uuser %Ssystem %Eelapsed %PCPU (%Xtext+%Ddata %Mmax)k 
%Iinputs+%Ooutputs (%Fmajor+%Rminor)pagefaults %Wswaps

Time 资源


 %E   进程使用的实际时间, [hours:]minutes:seconds.

 %e   进程使用的实际时间,以秒为单位

 %S   系统代表进程(在内核模式中)使用的cpu秒总数,以秒为单位

 %U   进程直接(在用户模式中)使用的cpu秒总数,以秒为单位.

 %P   这个作业获得的CPU百分比,这只是用户+系统时间除以总运行时间

内存资源

 %M   进程在其生命周期内的最大驻留集大小(单位为千字节).

 %t   进程的平均驻留设置大小(单位为千字节)

 %K   进程的平均总内存(数据+堆栈+文本)使用,单位为千字节。

 %D   进程未共享数据区域的平均大小(单位为千字节)。

 %p   进程未共享堆栈的平均大小(单位为千字节)。

 %X   进程共享文本的平均大小(以千字节为单位)

 %Z   系统的页面大小,以字节为单位。这是每个系统的常数,但在不同系统之间是不同的。

I/O 资源

 %F   进程运行时发生的主要或I/o要求的页面错误数。在这些错误中,页面实际上已经从主内存中迁移出去了。

 %R   小的或可恢复的页面错误的数量。
      这些页面帽是无效的(因此它们是错误的),但是还没有被其他虚拟页面认领。
      因此,页面中的数据仍然有效,但是必须更新系统表。

 %W   进程被换出主内存的次数

 %c   这个过程被非自愿切换的次数(因为时间片过期了)。

 %w   程序自愿切换上下文的次数,例如在等待I/O操作完成时。

 %I   进程输入的文件系统数量。

 %O   进程输出的文件系统数量。

 %r   进程接收到的套接字消息数。

 %s   进程发送的套接字消息数。

 %k   发送到进程的信号数。

命令信息

 %C   正在计时的命令的名称和命令行参数

 %x   命令退出状态

例子

运行命令 `wc /etc/hosts’并显示默认信息::

 $ time wc /etc/hosts
       35     111    1134 /etc/hosts
 0.00user 0.01system 0:00.04elapsed 25%CPU (0avgtext+0avgdata 0maxresident)k
 1inputs+1outputs (0major+0minor)pagefaults 0swaps

运行命令 `ls -Fs’ 并显示用户、系统和时间::

 $ time -f "\t%E real,\t%U user,\t%S sys" ls -Fs
 total 16
 1 account/      1 db/           1 mail/         1 run/
 1 backups/      1 emacs/        1 msgs/         1 rwho/
 1 crash/        1 games/        1 preserve/     1 spool/
 1 cron/         1 log/          1 quotas/       1 tmp/
         0:00.03 real,   0.00 user,      0.01 sys

运行命令`cat’ 并记录经过的时间(秒),直到用Ctrl-D关闭“cat”

         $ time cat
         ^d
         0:16.55,        726

time 命令实例:

linux命令:time gzip -cd file1.tar.gz 2>~/logfile.txt | pv -t -r -b -W -i 5 -B 8M | bzip2 > file1.tar.bz2 2>>~/logfile .txt .txt 2>>~/logfile file1.tar.bz2 > bzip2 | 8M -B 5 -i -W -b -r -t pv | 2>~/logfile.txt file1.tar.gz -cd gzip time time gzip -cd file1.tar.gz 2>~/logfile.txt | pv -t -r -b -W -i 5 -B 8M | bzip2 > file1.tar.bz2 2>>~/logfile .txtrootopen.com
linux命令:time gzip -cd file1.tar.gz 2>~/logfile.txt | pv -t -r -b -W -i 5 -B 8M | bzip2 > file1.tar.bz2 2>>~/logfile .txt .txt 2>>~/logfile file1.tar.bz2 > bzip2 | 8M -B 5 -i -W -b -r -t pv | 2>~/logfile.txt file1.tar.gz -cd gzip time time gzip -cd file1.tar.gz 2>~/logfile.txt | pv -t -r -b -W -i 5 -B 8M | bzip2 > file1.tar.bz2 2>>~/logfile .txtrootopen.com
2018-12-22 22:07:20

linux命令:time (dd if=/dev/zero of=zerofile bs=1M count=500;sync);rm zerofile zerofile count=500;sync);rm bs=1M of=zerofile if=/dev/zero (dd time time (dd if=/dev/zero of=zerofile bs=1M count=500;sync);rm zerofilerootopen.com
linux命令:time (dd if=/dev/zero of=zerofile bs=1M count=500;sync);rm zerofile zerofile count=500;sync);rm bs=1M of=zerofile if=/dev/zero (dd time time (dd if=/dev/zero of=zerofile bs=1M count=500;sync);rm zerofilerootopen.com
2018-12-22 22:04:54

linux命令:time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "scale=4000\; a\(1\)\*4" '|' bc -l -l bc '|' a\(1\)\*4" "scale=4000\; echo 0 -N seq|parallel -l|xargs proc|wc |grep /proc/cpuinfo cat time time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "scale=4000\; a\(1\)\*4" '|' bc -lrootopen.com
linux命令:time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "scale=4000\; a\(1\)\*4" '|' bc -l -l bc '|' a\(1\)\*4" "scale=4000\; echo 0 -N seq|parallel -l|xargs proc|wc |grep /proc/cpuinfo cat time time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "scale=4000\; a\(1\)\*4" '|' bc -lrootopen.com
2018-12-08 16:31:15

linux命令:time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "2^2^20" '|' bc bc '|' "2^2^20" echo 0 -N seq|parallel -l|xargs proc|wc |grep /proc/cpuinfo cat time time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "2^2^20" '|' bcrootopen.com
linux命令:time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "2^2^20" '|' bc bc '|' "2^2^20" echo 0 -N seq|parallel -l|xargs proc|wc |grep /proc/cpuinfo cat time time cat /proc/cpuinfo |grep proc|wc -l|xargs seq|parallel -N 0 echo "2^2^20" '|' bcrootopen.com
2018-12-08 16:29:07

linux命令:time usleep 100000 100000 usleep time time usleep 100000rootopen.com
linux命令:time usleep 100000 100000 usleep time time usleep 100000rootopen.com
2018-09-11 09:55:30

linux命令:timedatectl set-ntp true true set-ntp timedatectl timedatectl set-ntp truerootopen.com
linux命令:timedatectl set-ntp true true set-ntp timedatectl timedatectl set-ntp truerootopen.com
2018-08-22 22:51:13

linux命令:timedatectl set-local-rtc 0 0 set-local-rtc timedatectl timedatectl set-local-rtc 0rootopen.com
linux命令:timedatectl set-local-rtc 0 0 set-local-rtc timedatectl timedatectl set-local-rtc 0rootopen.com
2018-08-22 22:49:53

linux命令:timedatectl set-local-rtc 1 1 set-local-rtc timedatectl timedatectl set-local-rtc 1rootopen.com
linux命令:timedatectl set-local-rtc 1 1 set-local-rtc timedatectl timedatectl set-local-rtc 1rootopen.com
2018-08-22 22:49:11

linux命令:timedatectl | grep local local grep | timedatectl timedatectl | grep localrootopen.com
linux命令:timedatectl | grep local local grep | timedatectl timedatectl | grep localrootopen.com
2018-08-22 22:48:37

linux命令:timedatectl set-time '2018-08-20 16:14:50' 16:14:50' '2018-08-20 set-time timedatectl timedatectl set-time '2018-08-20 16:14:50'rootopen.com
linux命令:timedatectl set-time '2018-08-20 16:14:50' 16:14:50' '2018-08-20 set-time timedatectl timedatectl set-time '2018-08-20 16:14:50'rootopen.com
2018-08-22 22:47:30

linux命令:timedatectl set-time 20180820 20180820 set-time timedatectl timedatectl set-time 20180820rootopen.com
linux命令:timedatectl set-time 20180820 20180820 set-time timedatectl timedatectl set-time 20180820rootopen.com
2018-08-22 22:47:01

linux命令:timedatectl set-time 15:58:30 15:58:30 set-time timedatectl timedatectl set-time 15:58:30rootopen.com
linux命令:timedatectl set-time 15:58:30 15:58:30 set-time timedatectl timedatectl set-time 15:58:30rootopen.com
2018-08-22 22:45:38

linux命令:timedatectl set-timezone UTC UTC set-timezone timedatectl timedatectl set-timezone UTCrootopen.com
linux命令:timedatectl set-timezone UTC UTC set-timezone timedatectl timedatectl set-timezone UTCrootopen.com
2018-08-22 22:44:57

linux命令:timedatectl set-timezone “Asia/Shanghai” “Asia/Shanghai” set-timezone timedatectl timedatectl set-timezone “Asia/Shanghai”rootopen.com
linux命令:timedatectl set-timezone “Asia/Shanghai” “Asia/Shanghai” set-timezone timedatectl timedatectl set-timezone “Asia/Shanghai”rootopen.com
2018-08-22 22:44:01

linux命令:timedatectl list-timezones list-timezones timedatectl timedatectl list-timezonesrootopen.com
linux命令:timedatectl list-timezones list-timezones timedatectl timedatectl list-timezonesrootopen.com
2018-08-22 22:37:46

linux命令:timedatectl status status timedatectl timedatectl statusrootopen.com
linux命令:timedatectl status status timedatectl timedatectl statusrootopen.com
2018-08-22 22:35:37

linux命令:time for movie in $(ls -1 /home/$USER/.config/stremio/backgrounds2 | sort -u);do wget -qO- --header="Accept-Language: en" "https://www.imdb.com/title/$movie/" | hxselect -s '\n' -c 'title' 2>/dev/null | tee ~/$(date +%Y-%m-%d_%T)-movie-list.txt ; done done ; +%Y-%m-%d_%T)-movie-list.txt ~/$(date tee | 2>/dev/null 'title' -c '\n' -s hxselect | "https://www.imdb.com/title/$movie/" en" --header="Accept-Language: -qO- wget -u);do sort | /home/$USER/.config/stremio/backgrounds2 -1 $(ls in movie for time time for movie in $(ls -1 /home/$USER/.config/stremio/backgrounds2 | sort -u);do wget -qO- --header="Accept-Language: en" "https://www.imdb.com/title/$movie/" | hxselect -s '\n' -c 'title' 2>/dev/null | tee ~/$(date +%Y-%m-%d_%T)-movie-list.txt ; donerootopen.com
linux命令:time for movie in $(ls -1 /home/$USER/.config/stremio/backgrounds2 | sort -u);do wget -qO- --header="Accept-Language: en" "https://www.imdb.com/title/$movie/" | hxselect -s '\n' -c 'title' 2>/dev/null | tee ~/$(date +%Y-%m-%d_%T)-movie-list.txt ; done done ; +%Y-%m-%d_%T)-movie-list.txt ~/$(date tee | 2>/dev/null 'title' -c '\n' -s hxselect | "https://www.imdb.com/title/$movie/" en" --header="Accept-Language: -qO- wget -u);do sort | /home/$USER/.config/stremio/backgrounds2 -1 $(ls in movie for time time for movie in $(ls -1 /home/$USER/.config/stremio/backgrounds2 | sort -u);do wget -qO- --header="Accept-Language: en" "https://www.imdb.com/title/$movie/" | hxselect -s '\n' -c 'title' 2>/dev/null | tee ~/$(date +%Y-%m-%d_%T)-movie-list.txt ; donerootopen.com
2018-08-19 23:14:14

linux命令:time { <command1> ; <command2> ; <command...> ; } } ; <command...> ; <command2> ; <command1> { time time { <command1> ; <command2> ; <command...> ; }rootopen.com
linux命令:time { <command1> ; <command2> ; <command...> ; } } ; <command...> ; <command2> ; <command1> { time time { <command1> ; <command2> ; <command...> ; }rootopen.com
2018-01-26 12:34:48

linux命令:time vmware-cmd -l | while read x; do printf "$x"; vmware-cmd "$x" removesnapshots; done done removesnapshots; "$x" vmware-cmd "$x"; printf do x; read while | -l vmware-cmd time time vmware-cmd -l | while read x; do printf "$x"; vmware-cmd "$x" removesnapshots; donerootopen.com
linux命令:time vmware-cmd -l | while read x; do printf "$x"; vmware-cmd "$x" removesnapshots; done done removesnapshots; "$x" vmware-cmd "$x"; printf do x; read while | -l vmware-cmd time time vmware-cmd -l | while read x; do printf "$x"; vmware-cmd "$x" removesnapshots; donerootopen.com
2018-02-06 01:33:48

linux命令:time read (ctrl-d to stop) stop) to (ctrl-d read time time read (ctrl-d to stop)rootopen.com
linux命令:time read (ctrl-d to stop) stop) to (ctrl-d read time time read (ctrl-d to stop)rootopen.com
2018-03-14 23:35:48

linux命令:time (dd if=/dev/zero of=blah.out bs=256M count=1 ; sync ) ) sync ; count=1 bs=256M of=blah.out if=/dev/zero (dd time time (dd if=/dev/zero of=blah.out bs=256M count=1 ; sync )rootopen.com
linux命令:time (dd if=/dev/zero of=blah.out bs=256M count=1 ; sync ) ) sync ; count=1 bs=256M of=blah.out if=/dev/zero (dd time time (dd if=/dev/zero of=blah.out bs=256M count=1 ; sync )rootopen.com
2018-06-01 19:48:48

linux命令:time dd if=/dev/zero of=blah.out oflag=direct bs=256M count=1 count=1 bs=256M oflag=direct of=blah.out if=/dev/zero dd time time dd if=/dev/zero of=blah.out oflag=direct bs=256M count=1rootopen.com
linux命令:time dd if=/dev/zero of=blah.out oflag=direct bs=256M count=1 count=1 bs=256M oflag=direct of=blah.out if=/dev/zero dd time time dd if=/dev/zero of=blah.out oflag=direct bs=256M count=1rootopen.com
2018-01-15 23:03:48

linux命令:time echo 'n=70332;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bc bc | 'n=70332;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' echo time time echo 'n=70332;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bcrootopen.com
linux命令:time echo 'n=70332;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bc bc | 'n=70332;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' echo time time echo 'n=70332;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bcrootopen.com
2018-03-08 04:57:48

linux命令:time echo 'n=1000000;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bc bc | 'n=1000000;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' echo time time echo 'n=1000000;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bcrootopen.com
linux命令:time echo 'n=1000000;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bc bc | 'n=1000000;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' echo time time echo 'n=1000000;m=(n+1)/2;a=0;b=1;i=0;while(m){e[i++]=m%2;m/=2};while(i--){c=a*a;a=c+2*a*b;b=c+b*b;if(e[i]){t=a;a+=b;b=t}};if(n%2)a*a+b*b;if(!n%2)a*(a+2*b)' | bcrootopen.com
2018-01-25 23:09:48

linux命令:timeout 10 sleep 11 11 sleep 10 timeout timeout 10 sleep 11rootopen.com
linux命令:timeout 10 sleep 11 11 sleep 10 timeout timeout 10 sleep 11rootopen.com
2018-05-14 02:19:48

linux命令:time dd if=/dev/zero of=TEST bs=4k count=512000 count=512000 bs=4k of=TEST if=/dev/zero dd time time dd if=/dev/zero of=TEST bs=4k count=512000rootopen.com
linux命令:time dd if=/dev/zero of=TEST bs=4k count=512000 count=512000 bs=4k of=TEST if=/dev/zero dd time time dd if=/dev/zero of=TEST bs=4k count=512000rootopen.com
2018-01-10 03:46:48

linux命令:time { i=0; while [ $(( i < 65535 )) -eq 1 ] ; do nc -zw2 localhost $((++i)) && echo port $i opened ; done; } } done; ; opened $i port echo && $((++i)) localhost -zw2 nc do ; ] 1 -eq )) 65535 < i $(( [ while i=0; { time time { i=0; while [ $(( i < 65535 )) -eq 1 ] ; do nc -zw2 localhost $((++i)) && echo port $i opened ; done; }rootopen.com
linux命令:time { i=0; while [ $(( i < 65535 )) -eq 1 ] ; do nc -zw2 localhost $((++i)) && echo port $i opened ; done; } } done; ; opened $i port echo && $((++i)) localhost -zw2 nc do ; ] 1 -eq )) 65535 < i $(( [ while i=0; { time time { i=0; while [ $(( i < 65535 )) -eq 1 ] ; do nc -zw2 localhost $((++i)) && echo port $i opened ; done; }rootopen.com
2018-01-26 13:00:48

linux命令:time Command >/dev/null >/dev/null Command time time Command >/dev/nullrootopen.com
linux命令:time Command >/dev/null >/dev/null Command time time Command >/dev/nullrootopen.com
2018-06-04 11:53:48

linux命令:timelimit -t100 somecommand somecommand -t100 timelimit timelimit -t100 somecommandrootopen.com
linux命令:timelimit -t100 somecommand somecommand -t100 timelimit timelimit -t100 somecommandrootopen.com
2018-04-02 20:32:48

linux命令:time read x x read time time read xrootopen.com
linux命令:time read x x read time time read xrootopen.com
2018-03-21 11:35:48

linux命令:timeDNS () { { for x in "${local_DNS}" "208.67.222.222" "208.67.220.220" "198.153.192.1" "198.153.194.1" "156.154.70.1" "156.154.71.1" "8.8.8.8" "8.8.4.4"; do ({ echo -n "$x "; dig @"$x" "$*"|grep Query ; }|sponge &) done ; } | sort -n -k5 ; } } ; -k5 -n sort | } ; done &) }|sponge ; Query "$*"|grep @"$x" dig "; "$x -n echo ({ do "8.8.4.4"; "8.8.8.8" "156.154.71.1" "156.154.70.1" "198.153.194.1" "198.153.192.1" "208.67.220.220" "208.67.222.222" "${local_DNS}" in x for { { () timeDNS timeDNS () { { for x in "${local_DNS}" "208.67.222.222" "208.67.220.220" "198.153.192.1" "198.153.194.1" "156.154.70.1" "156.154.71.1" "8.8.8.8" "8.8.4.4"; do ({ echo -n "$x "; dig @"$x" "$*"|grep Query ; }|sponge &) done ; } | sort -n -k5 ; }rootopen.com
linux命令:timeDNS () { { for x in "${local_DNS}" "208.67.222.222" "208.67.220.220" "198.153.192.1" "198.153.194.1" "156.154.70.1" "156.154.71.1" "8.8.8.8" "8.8.4.4"; do ({ echo -n "$x "; dig @"$x" "$*"|grep Query ; }|sponge &) done ; } | sort -n -k5 ; } } ; -k5 -n sort | } ; done &) }|sponge ; Query "$*"|grep @"$x" dig "; "$x -n echo ({ do "8.8.4.4"; "8.8.8.8" "156.154.71.1" "156.154.70.1" "198.153.194.1" "198.153.192.1" "208.67.220.220" "208.67.222.222" "${local_DNS}" in x for { { () timeDNS timeDNS () { { for x in "${local_DNS}" "208.67.222.222" "208.67.220.220" "198.153.192.1" "198.153.194.1" "156.154.70.1" "156.154.71.1" "8.8.8.8" "8.8.4.4"; do ({ echo -n "$x "; dig @"$x" "$*"|grep Query ; }|sponge &) done ; } | sort -n -k5 ; }rootopen.com
2017-12-26 05:54:48

linux命令:timeout 5s COMMAND COMMAND 5s timeout timeout 5s COMMANDrootopen.com
linux命令:timeout 5s COMMAND COMMAND 5s timeout timeout 5s COMMANDrootopen.com
2018-03-22 01:48:48

linux命令:time (pv file.iso | dd bs=1M oflag=sync of=/dev/sdX 2>/dev/null) 2>/dev/null) of=/dev/sdX oflag=sync bs=1M dd | file.iso (pv time time (pv file.iso | dd bs=1M oflag=sync of=/dev/sdX 2>/dev/null)rootopen.com
linux命令:time (pv file.iso | dd bs=1M oflag=sync of=/dev/sdX 2>/dev/null) 2>/dev/null) of=/dev/sdX oflag=sync bs=1M dd | file.iso (pv time time (pv file.iso | dd bs=1M oflag=sync of=/dev/sdX 2>/dev/null)rootopen.com
2018-03-31 13:01:48

linux命令:timeout -k 1m 30s some_command some_command 30s 1m -k timeout timeout -k 1m 30s some_commandrootopen.com
linux命令:timeout -k 1m 30s some_command some_command 30s 1m -k timeout timeout -k 1m 30s some_commandrootopen.com
2018-05-26 10:26:48

linux命令:time dd if=/dev/zero of=dummy_file bs=512k count=200 count=200 bs=512k of=dummy_file if=/dev/zero dd time time dd if=/dev/zero of=dummy_file bs=512k count=200rootopen.com
linux命令:time dd if=/dev/zero of=dummy_file bs=512k count=200 count=200 bs=512k of=dummy_file if=/dev/zero dd time time dd if=/dev/zero of=dummy_file bs=512k count=200rootopen.com
2018-04-03 16:10:48

linux命令:timeDNS() { parallel -j0 --tag dig @{} "$*" ::: 208.67.222.222 208.67.220.220 198.153.192.1 198.153.194.1 156.154.70.1 156.154.71.1 8.8.8.8 8.8.4.4 | grep Query | sort -nk5; } } -nk5; sort | Query grep | 8.8.4.4 8.8.8.8 156.154.71.1 156.154.70.1 198.153.194.1 198.153.192.1 208.67.220.220 208.67.222.222 ::: "$*" @{} dig --tag -j0 parallel { timeDNS() timeDNS() { parallel -j0 --tag dig @{} "$*" ::: 208.67.222.222 208.67.220.220 198.153.192.1 198.153.194.1 156.154.70.1 156.154.71.1 8.8.8.8 8.8.4.4 | grep Query | sort -nk5; }rootopen.com
linux命令:timeDNS() { parallel -j0 --tag dig @{} "$*" ::: 208.67.222.222 208.67.220.220 198.153.192.1 198.153.194.1 156.154.70.1 156.154.71.1 8.8.8.8 8.8.4.4 | grep Query | sort -nk5; } } -nk5; sort | Query grep | 8.8.4.4 8.8.8.8 156.154.71.1 156.154.70.1 198.153.194.1 198.153.192.1 208.67.220.220 208.67.222.222 ::: "$*" @{} dig --tag -j0 parallel { timeDNS() timeDNS() { parallel -j0 --tag dig @{} "$*" ::: 208.67.222.222 208.67.220.220 198.153.192.1 198.153.194.1 156.154.70.1 156.154.71.1 8.8.8.8 8.8.4.4 | grep Query | sort -nk5; }rootopen.com
2018-05-03 19:19:48

linux命令:timedatectl set-time 'YYYY-MM-DD HH:MM:SS' && hwclock --systohc --systohc hwclock && HH:MM:SS' 'YYYY-MM-DD set-time timedatectl timedatectl set-time 'YYYY-MM-DD HH:MM:SS' && hwclock --systohcrootopen.com
linux命令:timedatectl set-time 'YYYY-MM-DD HH:MM:SS' && hwclock --systohc --systohc hwclock && HH:MM:SS' 'YYYY-MM-DD set-time timedatectl timedatectl set-time 'YYYY-MM-DD HH:MM:SS' && hwclock --systohcrootopen.com
2018-05-04 20:18:48

Linux的Bash命令行(A-Z排序)