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:

  1. How to rotate Tomcat catalina.out
  2. How to SSH without password
  3. Installing Java 7 on Mac OS X

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes