Linux user operation records generally use the history to view the history, but if someone deletes important data because of a mistake, the history command will not be useful in this case. The following methods can be used to log the log-in IP address and all user logins!
Add the following script code to the end of the /etc/profile configuration file. The following script is found on the Internet, the original author does not know. However, the time variable of the original script has an error and cannot record the time. I tested and found the fix:
PS1="`whoami`@`hostname`:"'[$PWD]'historyUSER_IP=`who -u am i 2>/dev/null
Preparation before erection: To set up a DNS server, you must install a software program that provi
Fault 1. Local connection is restricted or no connection [Fault phenomenon] Each time you enter the
In order to ensure the normal operation of the Linux system and accurately solve various system prob
In order to ensure the normal operation of the Linux system and accurately solve various system prob
XenServer multi-NIC binding implementation tutorial
Openoffice garbled solution under Linux
The example explains the difference between continue break
Detailed loading method of sound card driver under Linux operating system
Neighbor subsystem of linux protocol stack (related process 4)
Vsftp PASV mode (passive mode transfer) and port mode
Linux device model analysis drive article
Be a good housekeeper Linux system management skills
Vmware Server installation notes for Linux and Windows
Configuring JAVA environment variables under SUSE Linux system BASH
How to modify the Win10 official version of the computer name
Windows 7 Application Tutorial: Win7 Dynamic Icon
Windows 7 method of creating a library
Win10 WiFi password viewing method
How to remove the Windows.old folder to reclaim disk space
Win10 Preview 14251 Update Rollup
A comprehensive comparison of Linux server integration tools which is better?
How does the Win8 system use the file record function to recover accidentally deleted files?
Win8 desktop icon is gone, what to do, four steps to easily get back Win8 desktop icon
Win10 automatically update the latest preview version to close the setting method detailed