循环256色调色板

彩虹,而不是灰色
.

0

linux命令:yes "$(seq 1 255)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 255)" 1 "$(seq yes yes "$(seq 1 255)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
linux命令:yes "$(seq 1 255)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 255)" 1 "$(seq yes yes "$(seq 1 255)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
tosq 2018-05-18 07:49:48
输出
linux命令:yes 详解
替代方案1 循环256色调色板

只是为了好玩.

linux命令:yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 233)" -1 254 255;seq 232 "$(seq yes yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
linux命令:yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 233)" -1 254 255;seq 232 "$(seq yes yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
.
输出

评论

相关推荐

填充整个终端屏幕。如果列或行是未定义的,运行“resize”

linux命令:yes "\\__/ " | tr "\n" " " | fold -$((($COLUMNS-3)/6*6+3)) | head -$LINES -$LINES head | -$((($COLUMNS-3)/6*6+3)) fold | " " "\n" tr | " "\\__/ yes yes "\\__/ " | tr "\n" " " | fold -$((($COLUMNS-3)/6*6+3)) | head -$LINESrootopen.com
linux命令:yes "\\__/ " | tr "\n" " " | fold -$((($COLUMNS-3)/6*6+3)) | head -$LINES -$LINES head | -$((($COLUMNS-3)/6*6+3)) fold | " " "\n" tr | " "\\__/ yes yes "\\__/ " | tr "\n" " " | fold -$((($COLUMNS-3)/6*6+3)) | head -$LINESrootopen.com
.

linux命令:yes 我很棒 我很棒 yes yes 我很棒rootopen.com
linux命令:yes 我很棒 我很棒 yes yes 我很棒rootopen.com
.

此命令使用调试器附加到正在运行的进程,并将文件句柄重新分配给文件。在gdb中执行的两个命令arep close(1)关闭了STDOUT和p creat(“/ tmp / filename”,0600),它创建一个文件并将其打开输出。由于文件句柄是按顺序分配的,因此该命令将打开文件以代替STDOUT,并且一旦该过程继续,将向STDOUT输出的新输出写入我们的捕获文件。

linux命令:yes 'Y'|gdb -ex 'p close(1)' -ex 'p creat("/tmp/output.txt",0600)' -ex 'q' -p pid pid -p 'q' -ex creat("/tmp/output.txt",0600)' 'p -ex close(1)' 'p -ex 'Y'|gdb yes yes 'Y'|gdb -ex 'p close(1)' -ex 'p creat("/tmp/output.txt",0600)' -ex 'q' -p pidrootopen.com
linux命令:yes 'Y'|gdb -ex 'p close(1)' -ex 'p creat("/tmp/output.txt",0600)' -ex 'q' -p pid pid -p 'q' -ex creat("/tmp/output.txt",0600)' 'p -ex close(1)' 'p -ex 'Y'|gdb yes yes 'Y'|gdb -ex 'p close(1)' -ex 'p creat("/tmp/output.txt",0600)' -ex 'q' -p pidrootopen.com
.

linux命令:yes "text" | annoying_installer_program # "text" defaults to the letter y y letter the to defaults "text" # annoying_installer_program | "text" yes yes "text" | annoying_installer_program # "text" defaults to the letter yrootopen.com
linux命令:yes "text" | annoying_installer_program # "text" defaults to the letter y y letter the to defaults "text" # annoying_installer_program | "text" yes yes "text" | annoying_installer_program # "text" defaults to the letter yrootopen.com
.

也许你知道更短?

linux命令:yes '' | cat -n -n cat | '' yes yes '' | cat -nrootopen.com
linux命令:yes '' | cat -n -n cat | '' yes yes '' | cat -nrootopen.com
.

看到这里:http://www.pixelbeat.org/docs/terminal_colours/

linux命令:yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 233)" -1 254 255;seq 232 "$(seq yes yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
linux命令:yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 233)" -1 254 255;seq 232 "$(seq yes yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
.

linux命令:yes | tr 'y' 'n' 'n' 'y' tr | yes yes | tr 'y' 'n'rootopen.com
linux命令:yes | tr 'y' 'n' 'n' 'y' tr | yes yes | tr 'y' 'n'rootopen.com
.

linux命令:yes n n yes yes nrootopen.com
linux命令:yes n n yes yes nrootopen.com
.

通过ssh连接主机并显示实时传输速度,将所有传输的数据导向/ dev / nullneeds pv安装Debian:'apt-get install pv'Fedora:'yum install pv'(可能需要启用'extras'存储库)

linux命令:yes | pv | ssh $host "cat > /dev/null" /dev/null" > "cat $host ssh | pv | yes yes | pv | ssh $host "cat > /dev/null"rootopen.com
linux命令:yes | pv | ssh $host "cat > /dev/null" /dev/null" > "cat $host ssh | pv | yes yes | pv | ssh $host "cat > /dev/null"rootopen.com
.

简单的bash单线程来传递多个参数来逐一指挥。在命令开始时可选的是/否管道

linux命令:yes|for x in one two three; do echo result - $x; done done $x; - result echo do three; two one in x yes|for yes|for x in one two three; do echo result - $x; donerootopen.com
linux命令:yes|for x in one two three; do echo result - $x; done done $x; - result echo do three; two one in x yes|for yes|for x in one two three; do echo result - $x; donerootopen.com
.

linux命令:yes n | cp -p -i -r <src> <dest> <dest> <src> -r -i -p cp | n yes yes n | cp -p -i -r <src> <dest>rootopen.com
linux命令:yes n | cp -p -i -r <src> <dest> <dest> <src> -r -i -p cp | n yes yes n | cp -p -i -r <src> <dest>rootopen.com
.

linux命令:yes '' | head -n100 -n100 head | '' yes yes '' | head -n100rootopen.com
linux命令:yes '' | head -n100 -n100 head | '' yes yes '' | head -n100rootopen.com
.

linux命令:yes n | cp something toSomeWhereElse toSomeWhereElse something cp | n yes yes n | cp something toSomeWhereElserootopen.com
linux命令:yes n | cp something toSomeWhereElse toSomeWhereElse something cp | n yes yes n | cp something toSomeWhereElserootopen.com
.

linux命令:yes "echo -ne '\r'\`date\`;sleep 1" | sh sh | 1" '\r'\`date\`;sleep -ne "echo yes yes "echo -ne '\r'\`date\`;sleep 1" | shrootopen.com
linux命令:yes "echo -ne '\r'\`date\`;sleep 1" | sh sh | 1" '\r'\`date\`;sleep -ne "echo yes yes "echo -ne '\r'\`date\`;sleep 1" | shrootopen.com
.

该命令删除一个或多个文件夹中除第一次出现重复文件外的所有文件。

linux命令:yes 1 | fdupes -rd $folder $folder -rd fdupes | 1 yes yes 1 | fdupes -rd $folderrootopen.com
linux命令:yes 1 | fdupes -rd $folder $folder -rd fdupes | 1 yes yes 1 | fdupes -rd $folderrootopen.com
.

BW渐变

linux命令:yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 233)" -1 254 255;seq 232 "$(seq yes yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
linux命令:yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done done .01; sleep "\x1b[48;5;${i}m\n"; printf do i; read while | 233)" -1 254 255;seq 232 "$(seq yes yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; donerootopen.com
.

让我们休息一下。如何看恐怖?Shininghttp://en.wikipedia.org/wiki/The_Shining_(电影)

linux命令:yes "" | cat -n | awk '{print "S=`echo All work and no play makes Jack a dull boy. | cut -c",($1 - 1) % 43 + 1 "`;echo -n \"$S\";seq 500000 > /dev/null"}'| bash bash /dev/null"}'| > 500000 \"$S\";seq -n "`;echo 1 + 43 % 1) - -c",($1 cut | boy. dull a Jack makes play no and work All "S=`echo '{print awk | -n cat | "" yes yes "" | cat -n | awk '{print "S=`echo All work and no play makes Jack a dull boy. | cut -c",($1 - 1) % 43 + 1 "`;echo -n \"$S\";seq 500000 > /dev/null"}'| bashrootopen.com
linux命令:yes "" | cat -n | awk '{print "S=`echo All work and no play makes Jack a dull boy. | cut -c",($1 - 1) % 43 + 1 "`;echo -n \"$S\";seq 500000 > /dev/null"}'| bash bash /dev/null"}'| > 500000 \"$S\";seq -n "`;echo 1 + 43 % 1) - -c",($1 cut | boy. dull a Jack makes play no and work All "S=`echo '{print awk | -n cat | "" yes yes "" | cat -n | awk '{print "S=`echo All work and no play makes Jack a dull boy. | cut -c",($1 - 1) % 43 + 1 "`;echo -n \"$S\";seq 500000 > /dev/null"}'| bashrootopen.com
.

做最后的命令,但是对所有的事都说'y'

linux命令:yes | !! !! | yes yes | !!rootopen.com
linux命令:yes | !! !! | yes yes | !!rootopen.com
.

Adapted from http://stackoverflow.com/questions/13611501/bash-version-of-c64-code-art-10-print-chr205-5rnd1-goto-10

linux命令:yes 'c=(" " " " " " 0 1); printf "${c[RANDOM%5]}"' | bash bash | "${c[RANDOM%5]}"' printf 1); 0 " " " " " 'c=(" yes yes 'c=(" " " " " " 0 1); printf "${c[RANDOM%5]}"' | bashrootopen.com
linux命令:yes 'c=(" " " " " " 0 1); printf "${c[RANDOM%5]}"' | bash bash | "${c[RANDOM%5]}"' printf 1); 0 " " " " " 'c=(" yes yes 'c=(" " " " " " 0 1); printf "${c[RANDOM%5]}"' | bashrootopen.com
.

这是针对OS X用户的:Lion(10.7.5)中没有sort -R和shuf

linux命令:yes 'echo $(( RANDOM%100+1 )); sleep 5' | bash bash | 5' sleep )); RANDOM%100+1 $(( 'echo yes yes 'echo $(( RANDOM%100+1 )); sleep 5' | bashrootopen.com
linux命令:yes 'echo $(( RANDOM%100+1 )); sleep 5' | bash bash | 5' sleep )); RANDOM%100+1 $(( 'echo yes yes 'echo $(( RANDOM%100+1 )); sleep 5' | bashrootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令