今天我在我们的一台测试服务器上发现了一些非常有趣的东西(至少对我来说):
我可以使用相对路径从我的实际工作目录切换到现有目录,但是在使用ls -a.
这是shell会话(作为root):
$ pwd
/you/are/here
$ ls -a
. .. <-- Note: "somedir" is not shown to root
$ echo $CDPATH
$ cd somedir <-- But still: "cd" works fine
$ pwd
/you/are/here/somedir
$ cd ..
$ pwd
/you/are/here
$ ls -a
. ..
Run Code Online (Sandbox Code Playgroud)
有人能告诉我,这怎么可能?我已经检查过:lsis from/bin/ls和pwdis /bin/pwd,都来自他们的原始包(我的意思是:没有被黑)。
/you是挂载的 EMC 磁盘 (ext3)。并且somedir存在,因为我可以列出它的内容(有几个子目录,文件)。它的名字不以点开头。
更多的 shell 会话,以及有关命令和ls输出的更多信息:
root@U-TEST@AT$/bin/ls -ali
total 4
16515074 drwxrwxr-x 2 U8000966 …Run Code Online (Sandbox Code Playgroud) 有什么方法(最好是免费应用程序或注册表黑客)来强制 Windows XP 最大化地打开每个应用程序(窗口)?
automation ×1
clink ×1
cmder ×1
command-line ×1
ext3 ×1
filesystems ×1
linux ×1
shell ×1
windows ×1
windows-xp ×1