Skip to content

Instantly share code, notes, and snippets.

View omargtdev's full-sized avatar
👁️
An awesome developer

Omar Gutierrez Tafur omargtdev

👁️
An awesome developer
View GitHub Profile
@omargtdev
omargtdev / size_file.md
Last active April 27, 2022 01:47
Explicacion acerca del tamaño de los archivos en Linux

Tamaño de objetos (archivos y directorios) en Linux

Los archivos y directorios que tenemos en nuestro sistema pesan y representan algo en el espacio de nuestro disco, ya sea bytes, kb, mg, gb, etc.

Ver el tamaño de los archivos

Tenemos varios comandos, pero lo mas fundamentales y usados que viene por defecto en nuestra shell son ls y du. Estos comandos sirven para mostrar el tamaño de nuestros archivos. Pongamos un ejemplo con un directorio. En este caso usaremos el directorio "example" para el ejemplo.

@omargtdev
omargtdev / instructions.md
Created February 11, 2022 03:16 — forked from oprypin/instructions.md
systemd user unit + timer example

Save these files as ~/.config/systemd/user/some-service-name.*

Run this now and after any modifications: systemctl --user daemon-reload

Try out the service (oneshot): systemctl --user start some-service-name

Check logs if something is wrong: journalctl -u --user-unit some-service-name

Start the timer after this user logs in: systemctl --user enable --now some-service-name.timer