Conversation
Notices
-
Embed this notice
kaia (kaia@brotka.st)'s status on Wednesday, 20-Sep-2023 07:01:46 JST kaia I learned that if in Linux you are in a folder /tmp/test and remove that folder from elsewhere, recreate the folder, but your terminal is still in /tmp/test, you will not see the files in the folder, since the old and new folders are not the same. - on-lain ✔ᵛᵉʳᶦᶠᶦᵉᵈ likes this.
-
Embed this notice
hackbyte (hackbyte@friendica.utzer.de)'s status on Wednesday, 20-Sep-2023 07:03:41 JST hackbyte @kaia man directory/filehandles.. ;) kaia likes this. -
Embed this notice
😶🌫️ (engler@chaos.social)'s status on Wednesday, 20-Sep-2023 14:54:39 JST 😶🌫️ @kaia Could be because of tmpfs(5) but I am not sure.
kaia likes this. -
Embed this notice
grillchen (grillchen@brotka.st)'s status on Wednesday, 20-Sep-2023 14:54:40 JST grillchen @engler @kaia nah it is inodes.
internally the path is just an abstraction layer to make it human readable and for scripts and co to know where to go. but the actual folders are not identical
works also in /home
Terminal A:
cd /home/user/removeme
/home/user/removeme/testfile
Terminal B:
other terminal
rm -r /home/user/removeme
mkdir /home/user/removeme
touch /home/user/removeme/testfile
Terminal A:
ls
will return nothing.
first the content got deleted but the terminal A is still in the first folders inodes.
though a simple "cd ." will load the new content of the pathkaia likes this.