Explain the following unexpected result:

$ whereis date
date: /bin/date ...
$ echo $PATH
.:/usr/local/bin:/usr/bin:/bin
$ cat > date
echo "This is my own version of date."
$ ./date
Tue May 21 11:45:49 PDT 2013

You do not have execute permission for the date file in the working directory,
so the shell does not execute it but rather executes the /bin/date file.

Computer Science & Information Technology

You might also like to view...

A multipage form displays the data from underlying table or query on ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

IPsec can assure that _________.

A. a router advertisement comes from an authorized router B. a routing update is not forged C. a redirect message comes from the router to which the initial packet was sent D. all of the above

Computer Science & Information Technology