6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macの起動時間を調べる

Posted at

Macの起動時間を調べるにはuptimeコマンドを使用する。

$ uptime
 0:41  up 7 days,  3:16, 2 users, load averages: 1.54 1.30 0.93

ちなみにログインやリブート、シャットダウンの履歴を調べるにはlastコマンドを使用する。

$ last
kimitaka  ttys000                   Sun Feb 17 21:27   still logged in
kimitaka  console                   Sun Feb 17 21:27   still logged in
reboot    ~                         Mon Feb 18 06:25 
(略)
kimitaka  console                   Wed Feb  1 06:02 - 07:33  (01:30)
reboot    ~                         Wed Feb  1 15:00 
shutdown  ~                         Wed Feb  1 02:54 

wtmp begins Wed Feb  1 02:54
6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?