1
1

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 3 years have passed since last update.

linuxで(時々)使う状態確認コマンド

Last updated at Posted at 2020-03-09

作成や更新系は省いています。
専門でないのでたまに使うときに忘れてしまうlinuxの状態確認系のコマンドをまとめています。

osを確認
uname
uname -a # カーネル、リリース日など他の詳細も表示する
フルパスを確認
readlink -f ファイル名
現在ログインしているユーザーを確認
users
所属グループを確認
groups
設定されているcronを確認する
crontab -e
グローバルIPを確認
curl ifconfig.me
ping監視
ping ipアドレス
プロセス確認
ps aux
差分確認
# 左右並べて比較
diff -y ファイルA ファイルB

# ディレクトリで差分のあるファイル名のみ表示
diff -rq ディレクトリA ディレクトリB
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?