Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Check /var/log/. It has all interesting logs at your system. You can also change some of the user settings by editing the file /etc/passwd, this includes things like default bash, default home, etc.
You can try looking at shell history files to see if a specific command was done. Unfortunately the history files don't give timestamps so you can only guess whether the action was done 5 minutes ago or a year ago. Of course if its the last line of the history file and the timestamp on the history file itself is recent then you know when that occurred. You can also make guesses about how likely something was to have happened recently by its proximity to the end of the file.
var/log/messages, if I remember correctly, tells the time and who has tried to "su". I used a program called root-tail before which should display on my desktop background any important changes on the logs. You might want to give it a try if you want full control of what is happening with the logs without the need to read those files directly:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.