This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
computing:miscadmin [2021/04/02 20:31] – oemb1905 | computing:miscadmin [2022/11/25 13:36] – oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
------------------------------------------- | ------------------------------------------- | ||
* **miscadmin** | * **miscadmin** | ||
Line 229: | Line 228: | ||
cat / | cat / | ||
cat / | cat / | ||
+ | | ||
+ | -checking disk space- | ||
+ | |||
+ | du -ch -d 1 | sort -hr | ||
+ | |||
+ | -check disk space with ncurses tool- | ||
+ | |||
+ | sudo apt install ncdu | ||
+ | ncdu | ||
+ | | ||
+ | -stop/start sleep of any form on servers- | ||
+ | |||
+ | sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target | ||
+ | sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target | ||
+ | | ||
+ | -xorg with ssh | ||
+ | |||
+ | touch / | ||
+ | touch / | ||
+ | | ||
+ | -batch convert with ffmpeg to mp4 from mkv | ||
+ | |||
+ | for i in *.mkv; do | ||
+ | ffmpeg -i " | ||
+ | done | ||
+ | |||
+ | -fix badly configured zpool that used short names to by-id names. This command can be entered as-is, and does not need to be adjusted at all for what your specific ids are or for multiple drives. It literally exports the short names and by-ids, unmounts the volumes/ | ||
+ | |||
+ | zpool export tank | ||
+ | zpool import -d / | ||
+ | | ||
+ | monitor ram usage every 3 seconds in human readable way | ||
+ | |||
+ | free -h -w -s 3 | ||
+ | | ||
+ | postfix to relay | ||
+ | |||
+ | satellite option, enter the relay like this: '' | ||
- | --- //[[oemb1905@jonathanhaack.com|oemb1905]] | + | --- //[[jonathan@haacksnetworking.org|oemb1905]] |