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

ネットワークが遅くなった原因をClaudeCodeで解決 コマンドログ一覧

0
Posted at

本日使用したコマンド一覧と解説

同じネットワークにある、iPhone17 MBA M1 Macmini M2

しかし、MacMini M2だけが劇的に遅かったのでその要因をいろいろClaudeCodeと共に解決? していった。

後半は単なるコピペ担当だったので、その行為をその場でおわらず、

この方法であみだしたObsidianログから ネットワーク診断コマンドを自分の勉強用に残してみました!

ネットワーク診断コマンド

1. lsof -i -P -n | grep ESTABLISHED | awk '{print $1}' | sort | uniq -c | sort -rn

確立されたネットワーク接続をプロセス別に集計

2. speedtest-cli

インターネット速度をテスト(ダウンロード・アップロード速度測定)

3. ping -c 3 192.168.0.1

ルーターへの応答時間を測定

4. ifconfig | grep -A 5 "en0|en1|en2|en3|en4"

ネットワークインターフェース情報を表示

5. system_profiler SPNetworkDataType | grep -A 50 "Wi-Fi:"

WiFi詳細情報を表示

プロセス管理コマンド

6. ps aux | grep -i chrome | grep -v grep

Chrome プロセスの詳細情報を表示

7. ps aux | grep -i codex | grep -v grep

Codex(ChatGPT)プロセスの詳細情報を表示

8. killall -9 "Google Chrome"

Chrome を強制終了(-9 = SIGKILL シグナル)

9. killall -9 "ChatGPT"

ChatGPT を強制終了

ファイル管理コマンド

10. ls -la ~/Library/Application\ Support/Google/Chrome/Default/Extensions/

Chrome 拡張機能フォルダの内容表示

11. rm -rf ~/Library/Application\ Support/Google/Chrome/Default/Extensions/*

Chrome 拡張機能(ゴミ)を完全削除

12. rm -rf /Applications/Typeless.app

Typeless アプリを削除

ネットワーク接続確認

13. lsof -i -P -n | grep -i google | grep ESTABLISHED | wc -l

Google への接続数をカウント

14. lsof -i -P -n | grep ESTABLISHED | grep -v Google

Google 以外の確立された接続を表示

15. networksetup -getairportnetwork en1

接続中の WiFi SSID を表示

16. networksetup -setairportpower en1 off

WiFi をオフ

17. networksetup -setairportpower en1 on

WiFi をオン

SMC リセット

18. sudo nvram boot-args=""

SMC(System Management Controller)をリセット

19. sudo shutdown -r now

Mac を再起動

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