🐧

Alternative Linux Commands

2022/01/13に公開

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

ncdu

htop

fd

  • https://github.com/sharkdp/fd
  • Find コマンドの代替えです。実行速度は find より速いです。(個人的にも使っているけど、不可視ファイルはオプションを付けないとパスするといった挙動があるので、ちょっと癖あります)

exa

  • https://github.com/ogham/exa
  • ls コマンドの代替え。 -t が細かい指定じゃないと動かないとか、絵文字入りフォント( nerd font )を入れたほうが良い等あるけど、個人的には普通に使えてる。

Duf

tldr

mtr

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