Linux命令--开发人员用得上的命令

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/linysuccess/article/details/84562403

1 查看Linux是32位还是64位系统

给不同的系统安装软件环境的时候用得上

$ uname -a
$ Linux 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
#x86_64为64位系统, i386/i686则为32位系统。
$ getconf LONG_BIT
$ 64
#查看长整型占用的二进制位数, 是32/64则为32/64位系统。

$ clear
$ pwd
$ mv/cp等
$ cd /root/lucy
$ chmod 666 abc.txt
$ vim test.go
$ tail -f svr_service.log -n60 #查看文件末尾60行 -f指定监听文件内容变化
$ uptime #查看系统启动时间
$ ps aux | grep my_service_name

猜你喜欢

转载自blog.csdn.net/linysuccess/article/details/84562403