UNIX Publication - Debian: http://unix.pub/docs/debian/ - APT用法: http://unix.pub/docs/debian/apt_usage/ - dpkg用法: http://unix.pub/docs/debian/dpkg_usage/ - Debian发行版: http://unix.pub/docs/debian/DebianReleases/ - Debian基本命令备忘录: http://unix.pub/docs/debian/Debian-Basic-Command-Memo/ - Debian软件包: http://unix.pub/docs/debian/debian_packages/ - Distribution: http://unix.pub/docs/distributions/ - Waydog Linux: http://unix.pub/docs/distributions/Waydog/ - Lilidog Linux: http://unix.pub/docs/distributions/Lilidog/ - GNU核心工具: http://unix.pub/docs/coreutils/ - base32命令用法: http://unix.pub/docs/coreutils/base32_usage/ - base64命令用法: http://unix.pub/docs/coreutils/base64_usage/ - basenc命令用法: http://unix.pub/docs/coreutils/basenc_usage/ - cat命令用法: http://unix.pub/docs/coreutils/cat_usage/ - fmt命令用法: http://unix.pub/docs/coreutils/fmt_usage/ - fold命令用法: http://unix.pub/docs/coreutils/fold_usage/ - head命令用法: http://unix.pub/docs/coreutils/head_usage/ - nl命令用法: http://unix.pub/docs/coreutils/nl_usage/ - od命令用法: http://unix.pub/docs/coreutils/od_usage/ - pr命令用法: http://unix.pub/docs/coreutils/pr_usage/ - tac命令用法: http://unix.pub/docs/coreutils/tac_usage/ - Linux文档: http://unix.pub/docs/LinuxDoc/ - DAE用法: http://unix.pub/docs/LinuxDoc/dae_usage/ - Linux透明代理: http://unix.pub/docs/LinuxDoc/Linux_Transparent_proxy/ - OpenWrt: http://unix.pub/docs/openwrt/ - RaspberryPi: http://unix.pub/docs/raspberrypi/ - WDMyCloud vs Debian: http://unix.pub/docs/WDMyCloud/ - WD MyCloud Home安装运行Debian 11: http://unix.pub/docs/WDMyCloud/Running-Debian-11-on-WD-MyCloud-Home/ - WD MyCloud安装Debian Jessie: http://unix.pub/docs/WDMyCloud/Install-Debian-Jessie-on-WD-MyCloud-Gen1/ - WDMycloud救砖: http://unix.pub/docs/WDMyCloud/WDMycloud_Recovery/ - WDMycloud安装Debian: http://unix.pub/docs/WDMyCloud/WDMycloud_Crack_install_debian/ # cat命令用法 显示文件内容 ```sh $ cat push.sh #!/bin/bash TIMESTAMP=$(date +%s) rm -rf resources/ public/ .hugo_build.lock git add . git commit -m "update: ${TIMESTAMP}" git push sleep 3s echo "Done! Commit${TIMESTAMP}" sleep 3s ``` 附带显示行号 ```sh $ cat -n push.sh 1 #!/bin/bash 2 TIMESTAMP=$(date +%s) 3 rm -rf resources/ public/ .hugo_build.lock 4 git add . 5 git commit -m "update: ${TIMESTAMP}" 6 git push 7 sleep 3s 8 echo "Done! Commit${TIMESTAMP}" 9 sleep 3s ``` 显示非打印字符,比如换行、TAB等 ```sh $ cat push.sh -v #!/bin/bash^M TIMESTAMP=$(date +%s)^M ^M rm -rf resources/ public/ .hugo_build.lock^M git add .^M git commit -m "update: ${TIMESTAMP}"^M git push^M sleep 3s^M echo "Done! Commit${TIMESTAMP}"^M sleep 3s^M ``` `cat`不带任何选项,意思将标准输入(显示器)输出到标准输出(显示器),如下: ```sh $ cat 这是我输入的第一行 这是我输入的第一行 这是我 输入的第二行内容 这是输入的第二行内容 这是我输入的第三行内容 这是我输入的第三行内容 这是我输入 第四行数字 这是我输入第四行数字 ``` 第二行和第四行我输入时使用了删除键删除字符,删除键输出不显示