Why wordpress can’t display the bash command properly?

When a post gets published, it runs the_content() through a filter to strip out unsafe HTML. It looks like the parser thinks <people.txt is malformed HTML and strips it out.

Change < to &lt;, which is the HTML entity for <, and you should be able to publish the post and view it properly on the front end.