Home > OS >  Questions about shell commands, online, etc., very urgent
Questions about shell commands, online, etc., very urgent

Time:11-18

1, write a shell program, once every ten seconds detection/home/test/11, if the directory name is the test files, delete,
2, there are two servers A machine, machine B, distribution in different segments, A machine to machine B network impassability, please list screening procedures and the use of the command,

CodePudding user response:

1: every 10 seconds make cycle detection using scripts, judgment documents is as follows:
 if [! - f "/home/test/11/test"); Then the rm -f/home/test/11/test fi 

Different server 2: A, B, whether different network segments within the same network, such as A company may have multiple switches, each switch network segment is different, but are derived from A single fiber out, this time is about to see A layer switches do network forwarding,