Programs that keep running in the background are managed by systemd. journalctl shows their logs.
htop # live view of CPU, RAM and processes ps aux | grep nginx # find a process kill 1234 # stop process with id 1234 systemctl status ssh # is the SSH service running? sudo systemctl restart nginx sudo systemctl enable --now nginx # start now and on every boot journalctl -u nginx -f # follow a service's logs df -h && free -h # disk space and memory