Which Linux command or utility is simple, powerful, and surprisingly unknown to many people or used less often?

This could be a command or a piece of software or an application.

For example I’m surprised to find that many people are unaware of Caddy, a very simple web server that can make setting up a reverse proxy incredibly easy.

Another example is fzf. Many people overlook this, a fast command-line fuzzy finder. It’s versatile for searching files, directories, or even shell history with minimal effort.

  • gandalf_der_12te@discuss.tchncs.de
    link
    fedilink
    arrow-up
    16
    ·
    6 days ago

    socat - connect anything to anything

    for example

    socat - tcp-connect:remote-server:12345

    socat tcp-listen:12345 -

    socat tcp-listen:12345 tcp-connect:remote-server:12345

  • friend_of_satan@lemmy.world
    link
    fedilink
    English
    arrow-up
    29
    ·
    edit-2
    7 days ago

    Not powerful, but often useful, column -t aligns columns in all lines. EG

    $ echo {a,bb,ccc}{5,10,9999,888} | xargs -n3
    a5 a10 a9999
    a888 bb5 bb10
    bb9999 bb888 ccc5
    ccc10 ccc9999 ccc888
    $ echo {a,bb,ccc}{5,10,9999,888} | xargs -n3 | column -t
    a5      a10      a9999
    a888    bb5      bb10
    bb9999  bb888    ccc5
    ccc10   ccc9999  ccc888
    
  • toastal@lemmy.ml
    link
    fedilink
    arrow-up
    11
    ·
    6 days ago

    netstat -tunl shows all open ports on the machine to help diagnose any firewall issues.

  • Count Regal Inkwell@pawb.social
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    7 days ago

    batcat

    It’s like cat but better. Great for when you just want to look at the contents of a file, without loading a whole text editor.

    Oh also, tldr

    My procedure for learning how to use a cli command goes tldr page -> --help if the tldr fails to help me -> THEN the full manpage

  • gandalf_der_12te@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    6 days ago

    nmap *your_local_ip_address*

    for example

    nmap 192.168.1.43/24 will show you what devices are connected to the local network, and what ports are open there. really useful, for example, when you forgot the address of your printer or raspi yet again.

    you can also use it to understand what ports on your computer are open from an attacker’s perspective, or simply to figure out what services are running (ssh service).

  • ElCanut@jlai.lu
    link
    fedilink
    arrow-up
    11
    arrow-down
    3
    ·
    edit-2
    3 days ago

    Underrated

    Both linked projects have over 60k+ stars on GitHub

    Pick one