I've typed the following series of commands from window 1.
/usr/shailesh/tmpdir>touch a b c d
a b c d
Now, i've gone into window 2 and did the following.
/usr/shailesh>rm -rf tmpdir
Now, i came back into window 1 and invoked the following command.
(In window 1 I am still in the "tmpdir" directory).
Why does 'ls' give '/' as the output?
Also, if I invoke "ls -al", i still get the same output!
What special significance does "/" have here? (Is it anything to do
with the "root" directory?).
And when I give the absolute directory:
/usr/shailesh/tmpdir>ls -la /eng1/swdev2/shailesh/tmpdir
will result in 'No such file or directory'.
I've contacted some local gurus here and what one of them suggested was :
The shell deals with such a situation by suggesting to change to the
root directory (as it 'for sure' knows that the root exists :-).
Office | Residence
------ | ---------
Sequent Computer Systems Inc | 16356 SW Estuary Drive,
15450 SW Koll Parkway, | Apt #102,
Beaverton, OR - 97006 | Beaverton, OR - 97006
ph : (503) 578 5706 | ph : (503) 629 9643