Linux command line puzzler
The file “hello.txt” shows up in directory listing via the “ls” command. The puzzler is about trying to display the contents on the file via the “cat” command.
Following is a real transcript demonstrating the puzzler.
$ whoami vineet $ ls -al total 12 drwxr-xr-x 2 vineet vineet 4096 Nov 15 11:15 . drwx------ 15 vineet vineet 4096 Nov 15 11:14 .. -rw-r--r-- 1 vineet vineet 42 Nov 15 11:14 hello.txt $ cat hello.txt cat: hello.txt: No such file or directory
Puzzler: Why can’t we display the contents of the file “hello.txt”?
Know the answer? Post your response below.
Related posts:

The filename is “hello.txt ” <– An extra space at the end.
The contents of hello.txt is “cat: hello.txt: No such file or directory”.
Owner Group World
-rw- r– r–
Owner vineet doesnt have executable permissions on hello.txt . So he cant execute the cat command on top of the hello.txt file