Get information about running services with Systemd on Ubuntu.

The Systemd framework in Ubuntu may be used to get good information about running services on your machine. This is very easy. To list all active services on your Ubuntu machine, use this command. jason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=activejason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=active Or this command which is a fast way to list all running … Read more

How to get multicolored output when watching a file with Linux.

The tail command is a good way to see new content in a file, but it is monochrome output. But there is a better way to monitor files. Use the multitail command instead. This will print muticolored output when printing the last few lines of a file. Install this utility. sudo apt install multitailsudo apt … Read more

How to use the watch command to update a terminal every 2 seconds with an updating file.

I am using this command to search the Internet for open ports on port 80 with nmap. sudo nmap -sS -iR 0 -p 80 -oG nmap.grepablesudo nmap -sS -iR 0 -p 80 -oG nmap.grepable Then I use this command in another terminal tab to view the updating file. This will be updated every two seconds … Read more

How to watch a file in a terminal and see changes right away. Good for logfiles.

Here I am using the watch ‘tail access.log’ command to watch the access log file for the Apache web server. This will update every two seconds and show changes to the logfile when someone accesses the server. Every 2.0s: tail access.log Tue Jul 2 10:26:04 2013   77.78.106.75 – – [30/Jun/2013:18:03:09 +1000] "HEAD / HTTP/1.0" … Read more