标签:
1. 查看 系统信息: uname -- http://www.cyberciti.biz/faq/command-to-show-linux-version/
[krystal@localhost survey]$ uname -r 3.18.3-201.fc21.x86_64 [krystal@localhost survey]$ uname -mrs Linux 3.18.3-201.fc21.x86_64 x86_64 [krystal@localhost survey]$ uname -a Linux localhost.localdomain 3.18.3-201.fc21.x86_64 #1 SMP Mon Jan 19 15:59:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
2. 比较文件 sdiff/diff http://www.cyberciti.biz/faq/how-do-i-compare-two-files-under-linux-or-unix/
[krystal@localhost Public]$ cat file1 this is file1. now below is the content. this line is the same. only file1 has this line. [krystal@localhost Public]$ cat file2 this is file2. now below is the content. this line is the same. [krystal@localhost Public]$ sdiff file1 file2 this is file1. | this is file2. now below is the content. this line is the same. now below is the content. this line is the same. only file1 has this line. <
标签:
原文地址:http://www.cnblogs.com/joshuajiang/p/4592244.html