---
title: "一些鲜为人知的但却很有趣的Unix/Linux命令（二）"
author: "liberD"
date: "2013-01-18T14:33:13Z"
tags: []
categories: ["操作系统"]
slug: "unix-linux"
draft: false
lastmod: "2013-01-18T14:33:13Z"
id: 1772103
url: "https://liberd.iteye.com/blog/1772103"
---

在[“一些鲜为人知的但却很有趣的Unix/Linux命令（一）”](http://www.diguage.com/archives/88.html)中，D瓜哥已经给大家介绍了一下有趣的Unix/Linux指令。今天继续这个话题，再给大家介绍一下有趣的Unix/Linux指令。

#### 那些有趣的命令

- **factor,** 将一个数分解成多个数的乘积；
- **nc,** 强大的网络工具，可用于网络调试或数据传输等；
- **dd,**  用指定大小的块拷贝一个文件，并在拷贝的同时进行指定的转换；
- **file,**  辨识文件类型；
- **stat,** 查询、显示文件相关信息，比如修改时间、大小等等；
- **tac,** 反向输出文件内容；
- **shuf,**  把输入行（或者文件）按随机顺序输出到标准输出；
- **comm,** 按行比较两个已排过序的文件；
- **hexdump（可以简写成hd）,** 一般用来查看”二进制“文件的十六进制编码；
- **bvi,**  二进制文件编辑器；
- **strings,**  显示文件中的可打印字符；
- **tr,**  快速的实现字符的简单转换，也可以删除字符串中的指定子串，合并字符串中重复串；
- **iconv,**  将指定文件从一种编码转换为另一种编码
- **split,**  可将文件切成较小的文件，预设每1000行会切成一个小文件；
- **csplit,**  将文件依照指定的范本样式予以切割后，分别保存成名称为xx00,xx01,xx02…的文件；
- **7z,**  高比率的文件压缩；
- **ldd,**  用来分析程序运行时需要依赖的动态库的工具；
- **nm,**  用来查看指定程序中的符号表相关内容的工具；
- **ab,** Web性能基准测试工具；
- **strace,**  跟踪进程执行时的系统调用和所接收的信号；

 

#### 参考资料

　　这次的参考资料，挺不错，含金量很高，推荐大家都看看。

01. [linux nc命令参数及用法详解](http://www.linuxso.com/command/nc.html)
02. [linux nc (NetCat) 命令详解](http://www.huanxiangwu.com/477/linux-nc-netcat)
03. [Linux/UNIX命令dd简介](http://linux.chinaunix.net/doc/system/2005-02-03/1086.shtml)
04. [linux dd命令参数及用法详解](http://www.linuxso.com/command/dd.html)
05. [Linux 指令篇：文件管理–file](http://linux.chinaitlab.com/command/723446.html)
06. [linux stat命令参数及用法详解](http://www.linuxso.com/command/stat.html)
07. [shuf命令](http://www.lampblog.net/ubuntu/shuf%E5%91%BD%E4%BB%A4/)
08. [linux comm命令参数及用法详解](http://www.linuxso.com/command/comm.html)
09. [Linux命令之hexdump — 十六进制查看器](http://codingstandards.iteye.com/blog/805778)
10. [linux命令strings](http://www.cppblog.com/prayer/archive/2009/07/22/90836.html)
11. [linux tr命令详解](http://www.huanxiangwu.com/238/linux-tr%E5%91%BD%E4%BB%A4%E8%AF%A6%E8%A7%A3)
12. [使用iconv命令轻松实现linux下字符集编码的转换](http://qq164587043.blog.51cto.com/261469/63349)
13. [Linux系统下使用split命令分割大文件](http://tech.e800.com.cn/articles/2009/63/1243999011477_1.html)
14. [Linux csplit分割文件命令详解](http://www.centos.bz/2011/09/linux-csplit/)
15. [linux程序分析工具介绍(二)—-ldd,nm](http://www.wuzesheng.com/?p=1595)
16. [APACHE AB测试工具](http://lhflinux.blog.51cto.com/1961662/508883)
17. [Linux利器 strace](http://www.perfgeeks.com/?p=501)
18. [Linux 下 strace 命令用法总结(一)](http://hi.baidu.com/edeed/item/377b163ef94df75b81f1a7b3)

作 者： [D瓜哥，http://www.diguage.com/](http://www.diguage.com/)  
原文链接：[http://www.diguage.com/archives/90.html](http://www.diguage.com/archives/90.html "地瓜哥网-一些鲜为人知的但却很有趣的Unix/Linux命令（二）")