🐧
Alternative Linux Commands
netstat とおもむろに実行したら Command 'netstat' not found, but can be installed with: sudo apt install net-tools
と言われるので、そろそろいい加減にチートシートないと僕が死ぬので、メモ書き。
記述日:2022/01/13
Alternative / 代替え的な
代替え的なコマンド。ShellScript で使うのはマズいけど、自身がコンソール上で使う分には良いと思うよ。
HTTPie
- https://httpie.io/
- curl でも良いんじゃねと思うけど、これはこれで面白い。
Bat
- https://github.com/sharkdp/bat
- cat/less の代替えコマンド。ターミナル上で派手な表示をします。
ncdu
- https://linuxhandbook.com/find-directory-size-du-command/
- du コマンドを可視化して見やすくした代替えコマンド。
htop
- https://linuxhandbook.com/top-command/
- top コマンドの代替えです。cpu 使用率・メモリー使用率などをグラフ化して見やすくしてくれています。
fd
- https://github.com/sharkdp/fd
- Find コマンドの代替えです。実行速度は find より速いです。(個人的にも使っているけど、不可視ファイルはオプションを付けないとパスするといった挙動があるので、ちょっと癖あります)
exa
- https://github.com/ogham/exa
- ls コマンドの代替え。 -t が細かい指定じゃないと動かないとか、絵文字入りフォント( nerd font )を入れたほうが良い等あるけど、個人的には普通に使えてる。
Duf
- https://github.com/muesli/duf
- df コマンドの代替え。いい感じに表示してくれます。
tldr
- https://github.com/tldr-pages/tldr
- チートシートを表示してくれるコマンドみたいです。
mtr
- https://github.com/traviscross/mtr
- traceroute の代替えです。いい感じに表示をしてくれます。
Neofetch
- https://github.com/dylanaraps/neofetch
- システム情報をいい感じに表示してくれます。
iproute2
旧来の net-tools が非推奨になり、新しいコマンドに代替えをしています。よく忘れるので対応表だけ、ここに書く。
iproute2 | net-tools | |
---|---|---|
ip neigh | arp | ARP Table |
ip addr | ifconfig | IPAddress and Link Configure |
ip maddr | ipmaddr | Multicast |
ip tunnel | iptunnel | ip tunnle |
ethtool | mii-tool | information of network interface |
ifrename | nameif | name configuration of network interface |
ss | netstat | network analytics |
ip route | route | ip routing table |
Discussion