Mostrando entradas con la etiqueta sysadmin. Mostrar todas las entradas
Mostrando entradas con la etiqueta sysadmin. Mostrar todas las entradas

lunes, enero 03, 2022

tldr pages

Esta es una utileria moderna para una actividad clasica, creo que puede ser una categoria en el blog:  


tldr.sh

"The tldr pages are a community effort to simplify the beloved man pages with practical examples."


Es necesario instalar el Node Package Manager:

sudo apt-get install npm


Con eso puedes instalar la aplicacion:

sudo npm install -g tldr


Ejemplo:

tony@nuc:~$ tldr ss
  ss
  Utility to investigate sockets.
  More information: https://manned.org/ss.8.
  - Show all TCP/UDP/RAW/UNIX sockets:
    ss -a -t|-u|-w|-x
  - Filter TCP sockets by states, only/exclude:
    ss state/exclude bucket/big/connected/synchronized/...
  - Show all TCP sockets connected to the local HTTPS port (443):
    ss -t src :443
  - Show all TCP sockets listening on the local 8080 port:
    ss -lt src :8080
  - Show all TCP sockets along with processes connected to a remote ssh port:
    ss -pt dst :ssh
  - Show all UDP sockets connected on specific source and destination ports:
    ss -u 'sport == :source_port and dport == :destination_port'
  - Show all TCP IPv4 sockets locally connected on the subnet 192.168.0.0/16:
    ss -4t src 192.168/16

lunes, abril 05, 2021

NCurses Disk Usage

 Me tope con esta herramienta para análisis de espacio en disco: ncdu

Comúnmente se usa el comando du pero esta herramienta facilita mucho la búsqueda de los directorios y archivos que están consumiendo gran parte de nuestro espacio.

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote server where you don't have an entire graphical setup available, but it is a useful tool even on regular desktop systems. Ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed.

https://dev.yorhel.nl/ncdu