Solaris や Linux, インターネットサーバに関するサイトです

Solaris の各種システム情報を表示する。

ホストID
$ sysdef -h
ハードウェアタイプ
$ uname -m
プロセッサタイプ
$ uname -p
OSのリリース
$ uname -r
システムの構成情報
$ prtconf
システムが起動してからの時間
現在の時刻、起動してからの時間、ユーザ数、ロードアベレージが表示される。
$ uptime
3:15pm up 549 day(s), 18:18, 1 user, load average: 2.00, 2.00, 2.01
システムが起動した日時
$ who -b
. system boot Aug 22 20:57
タイムゾーン
日本では"Japan"を使う。
$ cat /etc/TIMEZONE
# @(#)init.dfl 1.5 99/05/26
#
# This file is /etc/default/init. /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not. To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables.
#
TZ=Japan
CMASK=022

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

編集にはIDが必要です