首页 > 系统服务 > 详细

linux 命令

时间:2015-06-21 21:01:33      阅读:283      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!