#author("2023-09-24T20:15:26+09:00","default:irrp","irrp") →[[Unix系OS]] →シェルスクリプト →様々なプログラム言語 →バッチファイル #contents *UNIXコマンド [#cd50e287] -[[ネットワークの関連 - Qiita>https://qiita.com/matuumo/items/e217a2ca1d34b6ab9d69]] 2023.9 -[[得体の知れないLinux PCやサーバーのハードウェアを調査する - Qiita>https://qiita.com/stLuciano/items/0d467a1a8cadad8955c9]] 2023.7 -[[Linux Performance>https://www.brendangregg.com/linuxperf.html]] 2023.5 --&ref(Linux監視系.png); -[[よく使うcurl コマンドのオプション Tips - エキサイト TechBlog.>https://tech.excite.co.jp/entry/2023/02/21/123027]] 2023.2 -[[A Practical Guide To Linux Echo Command - Earthly Blog>https://earthly.dev/blog/practical-guide-to-linux-echo-cmd/]] 2023.2 -[[日々の作業がちょっと楽になるかも?運用tips | SIOS Tech. Lab>https://tech-lab.sios.jp/archives/32622]] 2023 --vmstat,iostat,ping に日時情報をつける --特定のディレクトリ配下のファイルのハッシュ値 --重要なコマンドを実行する際に日付情報も保存 --正規表現でファイル削除するときの事前確認 -[[ls コマンドの「ファイル名」の出力形式(エスケープ)を徹底調査 - Qiita>https://qiita.com/ko1nksm/items/5cca5d5a76260c21029c]] 2023.1 -[[ストレージを消費しているものを探す - Qiita>https://qiita.com/belgianbeer/items/44d2e9c2f9ee43f6537f]] 2022.12 -[[Linux Command Line Books by William Shotts>https://linuxcommand.org/tlcl.php]] 2022.10 -[[Useful Command Line Tools in 2022 - DEV Community>https://dev.to/hackingcpp/useful-command-line-tools-in-2022-441n]] 2022.7 -[[第723回 複雑なコマンドパイプラインを簡単に組み立てる方法 | gihyo.jp>https://gihyo.jp/admin/serial/01/ubuntu-recipe/0723]] 2022.7 --[[GitHub - elkowar/pipr: A tool to interactively write shell pipelines.>https://github.com/elkowar/pipr]] -[[UNIX コマンドのオプションの意味を一瞬で調べる方法 (explainshell.com の紹介) - Qiita>https://qiita.com/QUANON/items/5465880e5131ac382596]] 2022.2 --[[explainshell.com - match command-line arguments to their help text>https://explainshell.com/]] 2022.2 -[[逆引きUNIXコマンド - Linuxと過ごす>https://linux.just4fun.biz/?%E9%80%86%E5%BC%95%E3%81%8DUNIX%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89]] 2020 -[[Linuxコマンド逆引き大全 Index | 日経クロステック(xTECH)>https://xtech.nikkei.com/it/article/COLUMN/20060224/230579/]] 2006 -[[sourceコマンドについて詳しくまとめました 【Linuxコマンド集】>https://eng-entrance.com/linux-command-source]] 2022.4 -[[【 locale 】コマンド――現在のロケールと使用可能なロケールの情報を表示する:Linux基本コマンドTips(263) - @IT>https://atmarkit.itmedia.co.jp/ait/articles/1812/06/news038.html]] 2018 -[[ssh先でクソ長いビルドを走らせてしまったのにもう寝たい時にすること - Qiita>https://qiita.com/ihatomorio/items/e702bdf1dcaa2c122018]] 2021.11 --jobs, bg, disown -メモリの状態を知るには free とか、下記でもよい cat /proc/meminfo |grep MemTotal -[[あなたが知らないかも知れないLinuxコマンドいろいろ>http://www.ideaxidea.com/archives/2008/06/linux.html]] 2008.7.1 -[[chkconfigまとめ>https://qiita.com/shell/items/30031862d91cedf9ceef]] 2014 サービスのシステム起動時の挙動設定を行う。 -[[rmで削除したファイルを復元できる lsof - Qiita>https://qiita.com/marukome/items/50f90f9a6f5078276e4d]] 2022.4 -[[lsof>https://atmarkit.itmedia.co.jp/ait/articles/1904/18/news033.html]] オープンしているファイル、ポートなどの一覧を得る -locate/updatedb ファイルの場所を検索/ファイル場所の情報のアップデート -[[od ファイルのダンプ (8進数/10進数/16進数表示) >http://x68000.q-e-d.net/~68user/unix/pickup?od]] $ od -tx1c test.txt 0000000 61 62 63 64 65 82 a0 82 a2 82 a4 82 a6 82 a8 20 a b c d e 202 240 202 242 202 244 202 246 202 250 0000020 0d 0a \r \n 0000022 -[[hexdump コマンドの使い方>http://x68000.q-e-d.net/~68user/unix/pickup?hexdump]] 2022.7 $ hexdump -C test.txt 00000000 61 62 63 64 65 82 a0 82 a2 82 a4 82 a6 82 a8 20 |abcde.......... | 00000010 0d 0a |..| 00000012 -[[find使用例>http://blog.livedoor.jp/dankogai/archives/50797631.html]] -[[めっちゃ便利やねん find コマンドのオプションまとめ>http://c-brains.jp/blog/wsg/10/04/09-095214.php]] 2010.4.9 -[[2つの環境の間でファイルに差異がないことを確認する>https://qiita.com/kaoru/items/eeaafe484e89a2daf339]] --shasumコマンド -[[ネットワークで困ったとき使用する6つのコマンド>http://blog.asial.co.jp/816]] 2012.10.24 -[[原因調査用Linuxコマンド>http://blog.father.gedow.net/2012/10/23/linux-command-for-trouble/]] 2012.10.23 -[[指定ディレクトリ以下の古いファイルを削除>http://code.nanigac.com/source/view/167]] 2007.8.8 * パッケージ管理、インストール関連 [#l62db5de] -[[現在認識しているaptリポジトリーの一覧や、リポジトリーに含まれているパッケージを調べたい - CLOVER🍀>https://kazuhira-r.hatenablog.com/entry/2022/08/13/202239]] 2022.8 -[[aptやdpkgでインストールしたパッケージや、debファイルに含まれるファイルを確認する - CLOVER🍀>https://kazuhira-r.hatenablog.com/entry/2022/08/13/172240]] 2022.8 -Debianでifconfigを使うには 2022.2 apt-get install net-tools -[[apt updateとapt upgradeの違い | YongJin Kim's Blog>https://yongjinkim.com/apt-update%e3%81%a8apt-upgrade%e3%81%ae%e9%81%95%e3%81%84/]] 2020 --updateがパッケージリストの更新、upgrade が実際のアップデート -[[apt-getによるパッケージのアップデートについて>http://www.ifelse.jp/blog/ubuntu-02]] 2018 -[[Ubuntuのupdate、upgrade、do-release-upgradeとは | Snow Tree in June>https://snowtree-injune.com/2020/10/09/ubuntu-upgrade-dj007/]] 2020 -[[【初心者でもわかる】yumコマンドの使い方とリポジトリの追加方法>https://eng-entrance.com/linux-package-yum]] 2018 -[[【yum入門】yumとは何か?Linuxにおけるyumとrpmの違い>https://uxmilk.jp/9715]] 2017 --「Yum(Yellowdog Updater Modified/ ヤム)」とは、LinuxのRedHat系ディストリビューション(CentOSやFedoraなど)で利用されるパッケージ管理ツールです。Debian系ディストリビューション(Ubuntuなど)で利用される「APT」に相当するもの --RedHat系ディストリビューションでは、ソフトウェアはrpm形式のパッケージ(.rpm)が使われている --ややこしいことにファイル形式.rpmと同じ名前のパッケージ管理ツール「RPM(RPM Package Manager)」も存在 --つまり、「.rpm」ファイルをインストールするパッケージ管理ツールに、「Yum」と「RPM」という2つのツールがある --基本的に、「Yum」は「RPM」の高機能版と考えて良い --「YUM」は「RPM」にパッケージの自動更新機能と、依存性の解決機能を加えたパッケージ管理ツールと言えます。 --「Yum」ではパッケージの集合であるリポジトリーと連動しており、リポジトリから未インストールのパッケージを検索できます * 関連ツール [#l9933d2f] -[[Windows ターミナルの概要 | Microsoft Docs>https://docs.microsoft.com/ja-jp/windows/terminal/]] --Windows ターミナルは、コマンド プロンプト、PowerShell、Linux 用 Windows サブシステム (WSL) などのコマンドライン ツールとシェルのユーザー向けの最新のターミナル アプリケーションです。 主な機能には、複数のタブ、ペイン、Unicode および UTF-8 文字のサポート、GPU で高速化されたテキスト レンダリング エンジン、独自のテーマを作成したり、テキスト、色、背景、およびショートカットをカスタマイズしたりする機能があります。