mathz.nu Asterisk Blacklist Hobby webbhotell

2021/11/10

Change PHP version

Filed under: Config — Mathz @ 11:41
sudo update-alternatives --config php


There are 4 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/php8.0   80        auto mode
  1            /usr/bin/php7.2   72        manual mode
  2            /usr/bin/php7.3   73        manual mode
  3            /usr/bin/php7.4   74        manual mode
  4            /usr/bin/php8.0   80        manual mode

Press <enter> to keep the current choice[*], or type selection number:

2021/11/09

Move files in directory based on year

Filed under: Uncategorized — Mathz @ 23:24

for i in `ls -lrt | grep “2015”| awk ‘{print $9}’ `; do mv -f $i* /new/Archives.2015/; done

Powered by WordPress