Miscelánea de utilidades y comandos Linux
Ver si es util
cfget
arpalert
Según una lista de MACS válidas, alerta si aparece alguna que no toca
drraw is a simple web based presentation front-end for RRDtool
http://www.fi.muni.cz/~kas/mrtg-rrd/
SambaDAVs
https://github.com/1afa/sambadav
Hacer script para añadir usuarios a imagen base
Redes
arpalert
Según una lista de MACS válidas, alerta si aparece alguna que no toca
Gestión interfaces
Ver denominación de los diferentes interfacessudo lshw -class network -businfo
Gestión de VF de SR-IOV (Intel i350 aquí)
Comando find
Eliminar archivos según un patronfind ./ -iname "*_original" -exec rm {} \;
Comando tar
Go one level outside your folder and try:
tar -cvjSf folder.tar.bz2 folder
Or from the same folder try
sudo tar -cvjSf folder.tar.bz2 *
Comando at
at, batch, atq, atrm - queue, examine or delete jobs for later execution
batch = Ejecutar cuando la carga del sistema < 1.5
Webs
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/at.html
https://www.computerhope.com/unix/uat.htm
Para inscribir una nueva tarea, especificar at [momento] y luego, en línea de comandos, lo que se quiere ejecutar
ejemplos de especificación de tiempo
at next week
at next monday
at now + 1 hour
Compresión de audio y video
Windows Powershell: convertir los wav del directorio de trabajo a flac (sin pérdida)Get-ChildItem *.wav | ForEach-Object { ffmpeg -i $_.Name "$($_.BaseName).flac" }
Windows Powershell: convertir los avi del directorio de trabajo a mp4 h265:Get-ChildItem *.avi | ForEach-Object { ffmpeg -i $_.Name -c:v libx265 -crf 23 -c:a copy "$($_.BaseName)_h265.mp4" }
Discos y espacios de almacenamiento
partclone
The utility for clone and restore a partition
fdisk
manipulate partition tables on a hard drive
fsarchiver
filesystem archiver
parted
a partition manipulation program
gdisk
text-mode menu-driven program for creation and manipulation of partition tables.
Velocidad de escritura
Velocidad de lectura (después de generar el archivo con la de escritura)
dd if=/mnt/temp/prueba of=/dev/null bs=8k
Volcar una partición a archivo (puede hacerse loop después
pv -tpreb /dev/sdg1 | dd of=./pablo_respaldo bs=4096 conv=notrunc,noerror
Generación de contraseñas .htpasswd
Generar fila de htpasswd con contraseña bcrypt (segura)htpasswd -nB [nombre de usuario]
Gestión y administración
sysbench- A modular, cross-platform and multi-threaded benchmark toolgnu-fdisk- Linux fdisk replacement based on libpartedgdisk- Interactive GUID partition table (GPT) manipulatorparted- partition manipulation programbonnie++- toolkit for testing hard drive and file system performancelshw- list hardwarepowertop- power consumption and power management diagnosis tooldebsums- herramienta para la verificación de archivos de paquetes instalados con la suma de comprobación MD5
Control del SAI
Para consultar el estadosudo upsc saibrocoli@brocoli.lechuga.eu
Para el control del demonio:sudo upsmon --help
Multimedia
cmatrixfigletMake large character ASCII banners out of ordinary textcowsayconfigurable talking cowfortuneprovides fortune cookies on demandlolcatcolorful `cat`aewan- An ascii-art editorbinclock- prints time in binary formattoilet- display large colourful charactersdivxenc- Para convertir DVD a mp4/divxtermsaver- simple text-based terminal screensaverbins- para hacer páginas html de imagenes, con interpretación de EXIFimageindex- a digital photo gallery tool
Gestión de archivos
rdfind- finds duplicate filesmlocate- find files by namecurlftpfs- mount a ftp host as a local directoryentr- run arbitrary commands when files changedavfs2- mount a WebDAV resource as a regular file systemcadaver- command-line WebDAV client for Unix
Tareas
taskvit
Monitorización
glancesCLI curses based monitoring toolhtopinteractive processes viewernmonperformance monitoring tool for Linuxsmem- Report memory usage with shared memory divided proportionallymultitee- send multiple inputs to multiple outputscolortail- log colorizer that makes log checking easierbinstats- display statistics about programs and librariesmultitail -i [fichero1] -i [fichero2] ... -i [fichero n]Ver multiples archivos de logs a la vez
Otros
prey- Set of scripts that helps you track your computer when it is stolenurlview- URL extractor/launcherbiabam- biabam is a bash attachment mailer
A clasificar
stegsnow- whitespace steganographygpg-zip- encrypt or sign files into an archiveleave- Le recuerda cuando tiene que irse