Sunday, March 3, 2019

Troubleshooting Linux

Sometimes things in the linux world doesn't always work the way we would like.  It is at those times that some investigation needs to be done. Here are some of the tools that can be used for the investigation. This is not an exhaustive list, but those tools that I've found as I continue to explore the world of linux.

Journal control is an excellent command line tool to find out what is going on in the system.

journalctl -p err -b | grep [item of interest here]

System control allows you to control what is in operation and to check on the status of something.

systemctl status [item of interest here]
systemctl start [item of interest here]
systemctl stop [item of interest here]
systemctl restart [item of interest here]
systemctl -t service -a [gives a listing of all services]
systemctl list-units [gives a listing of everything and status]

If you need to roll back to an older version of some application, you can find the older applications in the pacaman cache.

pacman -U /var/cache/pacman/pkg/[name of older application]

To get a listing of the latest changes, you can search by listing the cache based upon time.

ls -tlaF /var/cache/pacman/pkg/ | more