LoginSignup
1
0
記事投稿キャンペーン 「2024年!初アウトプットをしよう」

Linux系便利コマンド? CentOS OracleLinux RHEL

Last updated at Posted at 2024-01-26

概要

Linux系の便利系コマンドをざっくり

コマンド

バージョン情報確認

OS
cat /etc/redhat-release

# CentOS Linux release 8.9.333 (Core)
# Red Hat Enterprise Linux release 0.29 (Ootpa)

/tmp配下ファイルの削除タイミング

どのタイミングで削除されるかの設定確認
cat /usr/lib/systemd/system/systemd-tmpfiles-clean.timer | grep -A 2 Timer

# [Timer]
# OnBootSec=15min     # OS起動後15分後
# OnUnitActiveSec=1d  # 前回のファイル実行から1日後

リダイレクト出力 標準/エラー

標準出力だけ表示
$ ./sample.sh 2>/dev/null
エラー出力だけ表示
$ ./sample.sh 1>/dev/null

グローバルIP確認

curl inet-ip.info

過去記事リンク

気になって調べた内容しか書いてないシリーズ

参考

感想

過去記事見直してたら新規の内容がほぼなくなった。。

1
0
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
0