En vrac

## Yunohost

  • service nginx start
  • nginx -t
  • ls /etc/apt/sources.list.d

## Auto start program and switch tty

* File /usb/bin/boot_prompt.sh
#!/usr/bin/env bash
#LANG=C
#LANGUAGE=C
#LC_ALL=C
chvt 5
htop > /dev/tty5 2>&1
exit 0

* File /lib/systemd/system/getty@
ExecStart=-/sbin/getty/ --noclear -a root %I $TERM

=== ## Search pattern in file

  • grep -rnw '/path/to/somewhere/' -e 'pattern'

=== ## Remove full folder

  • rm -rf foldername