我注意到UNIX系统中有一个奇怪的行为:
I'm standing in /noob/
I have a symbolic link to a folder (A@ -> /B/C/D/A)
I enter the folder via my symlink (cd A)
pwd says /noob/A/
In /B/C/D/A/ i have a file abc which I can see now.
I want to copy it to /noob/
I type cp abc ..
I type cd ..
I end up in /noob/ which is empty - but the file ended up in /B/C/D/ ???
当给定..作为参数时,关于cp和cd指向何处的歧义又如何呢?我感到困惑。谁能用我会理解的术语来解释它?(=简单)
祝一切顺利,请原谅UNIX-noob这个愚蠢的问题。拉瑟