Patti (whipartist) wrote,
Patti
whipartist

Linux puzzler

You have two ssh windows open to the same system. It's your test system, and you tend to stay logged in for days or weeks at a time, since you're using it a lot. In each of the windows, you type the following commands and get the following output:

% hostname
foo.bar.com
% pwd
/foo/bar/bat
% cat bam/file1
result1

% hostname
foo.bar.com
% pwd
/foo/bar/bat
% cat bam/file1
result2



To recap: you're in the exact same directory on the exact same computer, and when you try to look at the exact same file you get two different results.

Anyone want to guess how that happened? Until I figured it out, I thought I was losing my mind!
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 12 comments