Comando "route -n" não encontrado

inxi -F --filter
hat@hatpc:~$ inxi -F --filter
System:
  Kernel: 5.18.0-4-amd64 arch: x86_64 bits: 64 Desktop: GNOME v: 42.4
    Distro: Debian GNU/Linux bookworm/sid
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A
    serial: <superuser required>
  Mobo: ASUSTeK model: Z87-DELUXE v: Rev 1.xx serial: <superuser required>
    BIOS: American Megatrends v: 1504 date: 10/03/2013
CPU:
  Info: quad core model: Intel Core i5-4670 bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 3117 min/max: 800/3800 cores: 1: 2275 2: 3398 3: 3398
    4: 3399
Graphics:
  Device-1: NVIDIA TU106 [GeForce GTX 1650] driver: nvidia v: 470.141.03
  Device-2: Microdia Integrated Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 with: Xwayland v: 22.1.3 driver:
    X: loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
    resolution: 1920x1080~60Hz
  OpenGL: renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA
    470.141.03
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio
    driver: snd_hda_intel
  Device-2: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
  Device-3: C-Media Redragon Gaming Headset type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.18.0-4-amd64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: yes
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Intel Ethernet I217-V driver: e1000e
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-3: Broadcom BCM4352 802.11ac Wireless Network Adapter
    driver: bcma-pci-bridge
  IF-ID-1: virbr0 state: down mac: <filter>
  IF-ID-2: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-3: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
  Device-1: ASUSTek BCM20702A0 type: USB driver: btusb
  Report: hciconfig ID: hci0 state: up address: <filter> bt-v: 2.1
Drives:
  Local Storage: total: 2.1 TiB used: 62.28 GiB (2.9%)
  ID-1: /dev/sda vendor: SanDisk model: SSD PLUS 240GB size: 223.58 GiB
  ID-2: /dev/sdb vendor: SanDisk model: SDSSDHP064G size: 59.63 GiB
  ID-3: /dev/sdc vendor: Seagate model: ST2000DM006-2DM164 size: 1.82 TiB
Partition:
  ID-1: / size: 218.07 GiB used: 62.28 GiB (28.6%) fs: ext4 dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 975 MiB used: 0 KiB (0.0%)
    dev: /dev/sda5
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A gpu: nvidia temp: 36 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 40%
Info:
  Processes: 241 Uptime: 30m Memory: 15.57 GiB used: 2.28 GiB (14.6%)
  Shell: Bash inxi: 3.3.21

Ao dar o comando “route -n” apareceu uma mensagem de erro sugerindo que ele não esta instalado, oque me deixou bem confuso.

hat@hatpc:~$ route -n
bash: route: comando não encontrado
hat@hatpc:~$ ls /bin | grep "route"
routel
traceroute
traceroute6
traceroute6.db
traceroute.db
traceroute-nanog

Alguem saberia ajudar?

Instale o pacote net-tools

sudo apt install net-tools
1 curtida

Ele já esta instalado.

hat@hatpc:~$ sudo apt update
Atingido:1 http://security.debian.org/debian-security bullseye-security InRelease
Atingido:2 http://deb.debian.org/debian testing InRelease
Atingido:3 http://deb.debian.org/debian bullseye-updates InRelease
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
All packages are up to date.
hat@hatpc:~$ sudo apt install net-tools
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
net-tools is already the newest version (1.60+git20181103.0eebece-1).
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
hat@hatpc:~$ 

O utilitário route está localizado em /sbin não em /bin, portanto verifique se a variável PATH contem o caminho /sbin.


  1. Para verificar execute echo $PATH.
  2. Para adicionar o caminho à variável execute export PATH=$PATH:/sbin

Depois tente executar o comando route novamente, caso persista experimente reinstalar o pacote com o seguinte comando.

sudo apt --reinstall install net-tools
1 curtida

Este tópico foi fechado automaticamente 3 dias depois da última resposta. Novas respostas não são mais permitidas.