0xnhl

Terminal commands and tools

/ Update
3 min read

Commands#

  • lsb_release -a - distro info

  • printenv - list all environment variables

  • where - Reports all known instances of a command. It could be an executable in the PATH environment variable, an alias, or a shell builtin.

  • whereis - Locate the binary, source, and manual page files for a command.

  • which - Locate a program in the user’s path.

  • whatis - Display one-line descriptions from manual pages.

  • locate - find files by name, quickly

  • stat: Displays file or file system status, providing detailed information.

    • stat <filename>
    • stat -f <path_to_filesystem_mount_point>
  • file : show file information

  • lsof (List Open Files): Lists information about files opened by processes. https://linux.die.net/man/8/lsof

    • lsof
    • sudo lsof -i :<port_number> (e.g., sudo lsof -i :22)

Disk Info#

  • lsblk - disk/partition info
  • df - shows storage info

HW info#

  • lshw: List Hardware. Provides detailed information about the machine’s hardware configuration. https://linux.die.net/man/1/lshw

    • sudo lshw
    • sudo lshw -c <class> (e.g., sudo lshw -c cpu, sudo lshw -c memory, sudo lshw -c network, sudo lshw -c disk)
  • lspci and lsusb to list PCI and USB devices, respectively.

  • dmidecode to retrieve information from the DMI/BIOS

System Management#

Tools#

Networking#

misc#


  • we can use the tool pimpmykali to update and setup our kali instance
Terminal commands and tools
https://nahil.xyz/vault/linux/terminal-commands-and-tools/
Author Nahil Rasheed
Published at June 15, 2025
Disclaimer This content is provided strictly for educational purposes only.