Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 4 章 Shell 命令

目录

4.1. Help Commands
4.1.1. man - an interface to the on-line reference manuals
4.2. getconf - Query system configuration variables
4.3. test 命令
4.3.1. 判断目录
4.4. 目录和文件
4.4.1. dirname
4.4.2. filename
4.4.3. test - check file types and compare values
4.4.4. file — determine file type
4.4.5. stat
4.4.6. mkdir - make directories
4.4.7. rename
4.4.8. touch
4.4.9. truncate
4.4.10. ls - list directory contents
4.4.11. cp - copy files and directories
4.4.12. rm - remove files or directories
4.4.13. df - report file system disk space usage
4.4.14. du - estimate file space usage
4.4.15. tac - concatenate and print files in reverse
4.4.16. split - split a file into pieces
4.4.17. find - search for files in a directory hierarchy
4.5. package / compress and decompress
4.5.1. tar — The GNU version of the tar archiving utility
4.5.2. cpio - copy files to and from archives
4.5.3. gzip
4.5.4. zip, zipcloak, zipnote, zipsplit - package and compress (archive) files
4.5.5. bzip2, bunzip2 - a block-sorting file compressor
4.5.6. RAR
4.5.7. 7-Zip
4.5.8. RAR
4.5.9. xz, unxz, xzcat, lzma, unlzma, lzcat - Compress or decompress .xz and .lzma files
4.6. 日期和时间
4.6.1. 日期格式
4.6.2. -d --date=
4.6.3. 时间戳
4.6.4. RFC 2822
4.6.5. UTC
4.6.6. 字符串转日期
4.7. 数值与运算
4.7.1. 数值运算
4.7.2. seq - print a sequence of numbers
4.7.3. bc - An arbitrary precision calculator language
4.8. 文本处理
4.8.1. iconv - Convert encoding of given files from one encoding to another
4.8.2. 字符串处理命令expr
4.8.3. cat - concatenate files and print on the standard output
4.8.4. nl - number lines of files
4.8.5. tr - translate or delete characters
4.8.6. cut - remove sections from each line of files
4.8.7. printf - format and print data
4.8.8. Free `recode' converts files between various character sets and surfaces.
4.8.9. /dev/urandom 随机字符串
4.8.10. col - filter reverse line feeds from input
4.8.11. apg - generates several random passwords
4.8.12. head/tail
4.8.13. 反转字符串或文件内容
4.8.14. TAB符号与空格处理
4.8.15. grep, egrep, fgrep, rgrep - print lines matching a pattern
4.8.16. sort - sort lines of text files
4.8.17. uniq
4.8.18. awk
4.8.19. sed
4.9. 表格操作/行列转换
4.9.1. column - columnate lists
4.9.2. paste - merge lines of files
4.9.3. join
4.10. standard input/output
4.10.1. xargs - build and execute command lines from standard input
4.11. flock - manage locks from shell scripts
4.12. 进制转换 - 16进制 - 8进制 - 二进制
4.12.1. od - dump files in octal and other formats
4.12.2. hexdump, hd -- ASCII, decimal, hexadecimal, octal dump
4.12.3. xxd - make a hexdump or do the reverse.
4.12.4. binutils
4.13. 文件比较
4.13.1. diff
4.13.2. sdiff
4.13.3. diff3
4.14. ed, red - text editor
4.15. vim
4.15.1. vim 初始化
4.15.2. 查找与替换
4.15.3. 删除操作
4.15.4. 插入文件
4.15.5. 批处理
4.15.6. line()
4.15.7. set fileformat
4.15.8. 空格与TAB转换
4.16. Wget - The non-interactive network downloader.
4.16.1. Logging and input file
4.16.2. 下载相关参数
4.16.3. HTTP options (HTTP 选项)
4.16.4. Recursive download
4.16.5. --no-passive-ftp disable the "passive" transfer mode.
4.16.6. 下载一组连续的文件名
4.17. CURL - transfer a URL
4.17.1. 基本用法
4.17.2. 提交表单数据
4.17.3. 上传文件
4.17.4. connect-timeout
4.17.5. max-time
4.17.6. compressed
4.17.7. 代理服务器
4.17.8. -w, --write-out <format> 输出格式定义
4.17.9. -A/--user-agent <agent string>
4.17.10. referer
4.17.11. -v
4.17.12. -o, --output FILE Write output to <file> instead of stdout
4.17.13. -L, --location
4.17.14. -H/--header <line> Custom header to pass to server (H)
4.17.15. curl-config
4.17.16. 指定网络接口或者地址
4.17.17. Cookie 处理
4.17.18. Restful 应用 JSON 数据处理
4.17.19. 访问自签名证书
4.17.20. HTTP2
4.17.21. FAQ
4.18. expect
4.18.1. 模拟登录 telnet 获取Cisco配置
4.18.2. 模拟登录 ssh
4.18.3. SCP
4.18.4. openssl 例子
4.19. expect-lite - quick and easy command line automation tool
4.20. sshpass - noninteractive ssh password provider
4.21. Klish - Kommand Line Interface Shell (the fork of clish project)
4.21.1. 安装Klish
4.21.2. 为用户指定clish作为默认Shell
4.21.3. FAQ
4.22. Limited command Shell (lshell)
4.23. TUI
4.23.1. screen - screen manager with VT100/ANSI terminal emulation
4.23.2. tmux — terminal multiplexer
4.23.3. byobu - wrapper script for seeding a user's byobu configuration and launching a text based window manager (either screen or tmux)
4.23.4. htop - interactive process viewer
4.23.5. elinks
4.23.6. chat
4.24. jq - Command-line JSON processor
4.24.1. --raw-output
4.25. asciinema 终端录屏
4.26. parallel - build and execute shell command lines from standard input in parallel
4.27. multitail
4.28. Logging
4.28.1. logger - a shell command interface to the syslog(3) system log module
4.29. Password
4.29.1. Shadow password suite configuration.
4.29.2. newusers - update and create new users in batch
4.29.3. chpasswd - update passwords in batch mode
4.29.4. sshpass - noninteractive ssh password provider
4.30. 信息摘要
4.30.1. cksum, sum -- display file checksums and block counts
4.30.2. md5sum - compute and check MD5 message digest
4.30.3.
4.31. envsubst - substitutes environment variables in shell format strings

4.1. Help Commands

4.1.1. man - an interface to the on-line reference manuals

manpath.config
cat /etc/manpath.config
			
查看man手册位置
$ man -aw ls
/usr/share/man/man1/ls.1.gz
			
指定手册位置
man -M /home/mysql/man mysql