network:command
目次
ネットワークコマンド
よく使う便利なネットワークコマンドの一覧
※ただし「ifconfig」などのコマンドは古いともされており、Ubuntuにおいては18.04以降、デフォルトではインストールされていない。「ifconfig」コマンドを使用するには「net-tools」パッケージをインストールする必要がある。
net-toolsのインストール
$ sudo apt install net-tools
ネットワークインターフェースの確認(IPアドレスなど)
| Windows | Linux |
|---|---|
| ipconfig | ifconfig |
| ip addr show / ip a(省略形) |
ネットワーク接続確認
| Windows | Linux |
|---|---|
| ping | ping |
ネットワーク経路の表示
| Windows | Linux |
|---|---|
| tracert | traceroute |
ホスト名の表示
| Windows | Linux |
|---|---|
| hostname | hostname |
ARPテーブル(IPアドレスとMACアドレスの関連付け情報)の表示
| Windows | Linux |
|---|---|
| arp | arp |
ドメイン名からIPアドレスを問合せ(または逆)
| Windows | Linux |
|---|---|
| nslookup | nslookup |
network/command.txt · 最終更新: by 127.0.0.1
