$lsof -i | grep -i "listen"
$lsof -iTCP -sTCP:LISTEN
$pgrep -fl supervisor
$lsof -c supervisord | egrep 'COMMAND|sock'
$pstree = shows you in a tree format all processes running on your machine. Good for when you want to check if you startup script is running.
$date; ls -ld /proc/17 = shows you the time/date since process 17 has been started for
$ps -a | grep -i "/var/www/scripts/validate_process.sh" | awk '{print $6}' | kill -9 $(pgrep -f /var/www/scripts/validate_process.sh)
Project configured to run on Docker desktop on local machine:
$docker run --rm -u "$(id -u):$(id -g)" -v $(pwd):/var/www/html -w /var/www/html laravelsail/php81-composer:latest composer install --ignore-platform-reqs
$./vendor/bin/sail artisan migrate:fresh = this command will rebuild db and tables
$./vendor/bin/sail artisan db:seed = this command calls database/seeders/UserSeeder.php which in turn calls database/factories/UserFactory.php to grab username and login password
$./vendor/bin/sail down
$./vendor/bin/sail up -d
$./vendor/bin/sail build