Home > OS >  Use the tail is a problem
Use the tail is a problem

Time:11-14

I write both had written in the file content, there are also generated random Numbers, why when using tail display shows a random number only part?

Such as a flag. TXT file content is "how are you, you won the flag success! Flag is: XXXXXXXX ", XXXXXXXX is to generate a random number, through the echo to the flag. TXT, when I enter the tail flag. TXT, why only XXXXXXXX this number will be shown, and words are not in front of the shows? But if I change the random number also to determine the value of the tail flag. TXT can reveal all content,

The problem is encountered when SSH login drone in the docker mirror, and this have relations, or related to tail this command only?

Please answer, thank you.

CodePudding user response:

Other don't know, anyway, I see the file with the tail is follow to read, with tail -f view file is written to, if only in order to read the file, not simply as directly with cat
  • Related