1-保存man-page 为pdf文件man -t awk | ps2pdf - awk.pdf2-Duplicate installed packages from one machine to the other (RPM-based systems)ssh root@remote.host "rpm -qa" | xargs yum -y install3-Stamp a text line on top of the pdf pages to quickly add some remark, comment, stamp text, … on top of (each of) the pages of the input pdf fileecho "This text gets stamped on the top of the pdf pages." | enscript -B -f Courier-Bold16 -o- | ps2pdf - | pdftk input.pdf stamp - output output.pdf4-Display the number of connections to a MySQL Databasemysql -u root -p -BNe "select host,count(host) from processlist group by host;" information_schema5-Create a local compressed tarball from remote host directoryssh user@host "tar -zcf - /path/to/dir" > dir.tar.gz6-tail a log over sshssh -t remotebox "tail -f /var/log/remote.log"7-Print diagram of user/groupsawk "BEGIN{FS=":"; print "digraph{"}{split($4, a, ","); for (i in a) printf ""%s" [shape=box]
"%s" -> "%s"
", $1, a[i], $1}END{print "}"}" /etc/group|display8-Draw kernel module dependancy graph.lsmod | perl -e "print "digraph "lsmod" {";;while(){@_=split/s+/; print ""$_[0]" -> "$_"
" for split/,/,$_[3]}print "}"" | dot -Tpng | display -9-Create strong, but easy to remember passwordread -s pass; echo $pass | md5sum | base64 | cut -c -1610-Find all files larger than 500M and less than 1GBfind / -type f -size +500M -size -1G11-Limit the cpu usage of a processsudo cpulimit -p pid -l 50很有“一行帝”风范啊~~ Red Hat Linux 9 安装JDKFedora 16 AMD 闭源驱动安装指南相关资讯 Linux命令
- 48 字节命令可令 Linux 系统当机! (今 07:55)
- 在Linux笔记本上执行这句命令能致 (02月02日)
- .NET开发必会的Linux命令 (12/20/2015 10:32:03)
| - 运维工程师必会的109个Linux命令 (03月09日)
- 有趣的Linux命令行:随机输出唐诗 (12/28/2015 20:14:23)
- 10 个 Linux 中的 passwd 命令示例 (10/29/2015 10:14:30)
|
本文评论 查看全部评论 (0)