1. make full use of the built-in check commands in Linux and Unix systems to detect the system. For example, the following commands are useful in Linux and Unix systems.
1. make full use of the built-in check commands in Linux and Unix systems to detect the system. For example, the following commands are useful in Linux and Unix systems:
-Who: check who logs on to the system;
-W: check who logs on to the system and what operations are being performed;
-Last: displays the users and TTYS that have been logged on to the system;
-History: displays commands run in the past by the system;
-Netstat: You can view the current network status;
-Top: dynamically checks system processes in real time;
-Finger: View all login users.
2. regularly check system logs, files, time, and process information. For example:
-Check the/var/log/messages log file to view the logon status of external users;
-Check the logon history files (such as. history files) in the/home/username directory );
-Check the. rhosts and. forward remote login files in the/home/username directory;
-Run the "find/-ctime-2-ctime + 1-ls" command to view the files modified in less than two days;
-Run the "ls-lac" command to view the real modification time of the file;
-Run the "cmp file1 file2" command to compare the file size changes;
-Protect important system commands, processes, and configuration files to prevent intruders from replacing them with the right to modify the system.