有關uptime指令 - Linux

By Tristan Cohan
at 2014-03-21T23:12
at 2014-03-21T23:12
Table of Contents
各位前輩好,初學Linux系統 (我使用CentOS)
有關於uptime的指令想請教大家:
我使用uptime指令,來"只看"目前的使用人數和loading
我可以使用這個指令:uptime | grep -ohe '[0-9.*] user[s,].*'
但這只能看到當下的這台電腦,如果我和其他電腦有作連接
是否有辦法看到另一台電腦的狀態?
我目前想到的方法是:使用ssh username uptime | grep -ohe '[0-9.*] user[s,].*'
不過這每次都要重新輸入密碼...Orz
請問有甚麼方法可以看到其他台電腦的uptime?
我想寫個script練習看看~
謝謝各位前輩的指導~再次感謝您們 :)
--
Tags:
Linux
All Comments

By Wallis
at 2014-03-22T15:06
at 2014-03-22T15:06

By Daph Bay
at 2014-03-27T04:59
at 2014-03-27T04:59

By Audriana
at 2014-03-29T00:45
at 2014-03-29T00:45

By Lydia
at 2014-04-02T01:10
at 2014-04-02T01:10
Related Posts
shell 學習

By Sandy
at 2014-03-21T19:03
at 2014-03-21T19:03
找不到 /usr/lib/ssl

By Bennie
at 2014-03-21T08:05
at 2014-03-21T08:05
想買Linux iptables 技術實務二手書

By Bennie
at 2014-03-20T21:41
at 2014-03-20T21:41
pf.conf設定

By Harry
at 2014-03-20T13:07
at 2014-03-20T13:07
安裝linux後再補裝swap

By Doris
at 2014-03-20T07:47
at 2014-03-20T07:47