码迷,mamicode.com
首页 > 系统相关 > 详细

linux 命令

时间:2015-06-21 21:02:52      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

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.				      <

  

linux 命令

标签:

原文地址:http://www.cnblogs.com/joshuajiang/p/4592244.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!