Skip to content

Latest commit

 

History

History
222 lines (151 loc) · 2.48 KB

有趣的命令.md

File metadata and controls

222 lines (151 loc) · 2.48 KB

rev

颠倒所输入的字符串

# a.txt
# abc

rev a.txt
> cba

asciiview

ascii方式终端查看图片

apt install aview imagemagick

asciiview some_pic.png -driver curses

sl

一辆火车通过终端,敲错ls的后果

apt install sl

sl

aafire

apt install libaa-bin

aafire

cmatrix

终端字符雨特效

apt install cmatrix

cmatrix

factor

因式分解,对所给的数分解因式

apt install factor

factor 6
> 6: 2 3

oneko

终端出现一只猫,跟着鼠标移动

apt install oneko

oneko

boxes

对所输入的字符添加各种外形/边框

apt install boxes

echo "some_text" | boxes -d dog

xeyes

出现一双眼睛盯着你

apt install xeyes

xeyes

pv

匀速显示字符

apt install pv

echo "some text string test eeeee show on terminal." | pv -qL 10

fortune

显示一些句子

apt install fortune

fortune

figlet

终端上输出大号的ascii文字

apt install figlet

# /usr/share/figlet 字体文件
figlet -f big.flf some_text

asciiquarium

终端变成海洋馆

apt install asciiquarium

asciiquarium

cowsay

用ascii显示输入的字符

apt install cowsay

cowsay some_text
cowsay -f ghostbusters.cow some_text

toilet

彩色输出ascii字符串

apt install toilet

toilet -F border -F gay -f mono12 some_text

bb

嗯,难以描述

apt install bb

bb

lolcat

彩色的cat

apt install lolcat

lolcat some_file.txt

cheat

显示输入命令的用法示例

apt install cheat

cheat ls
> # Displays everything in the target directory
> ls path/to/the/target/directory
> # Displays everything including hidden files
> ls -a
> # Displays all files, along with the size (with unit suffixes) and timestamp
> ls -lh
> # Display files, sorted by size
> ls -S
> # Display directories only
> ls -d */
> # Display directories only, include hidden
> ls -d .*/ */