linux – 通过命令行找出符号链接目标
发布时间:2020-12-05 01:22:23 所属栏目:Linux 来源:互联网
导读:假设我设置了一个符号链接: ln -s /root/Public/mytextfile.txt /root/Public/myothertextfile.txt 有没有办法看到myothertextfile.txt的目标是使用命令行? 使用-f标志打印规范化版本.例如: readlink -f /root/Public/myothertextfile.txt 来自man readlin
假设我设置了一个符号链接: ln -s /root/Public/mytextfile.txt /root/Public/myothertextfile.txt 有没有办法看到myothertextfile.txt的目标是使用命令行? 解决方法使用-f标志打印规范化版本.例如:readlink -f /root/Public/myothertextfile.txt 来自man readlink: -f,--canonicalize canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist (编辑:鲜蔬坊站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- NMAP - A Stealth Port Scanner--reference
- linux – appassembler maven插件不会对生成的脚本设置“执
- linux – 托管KVM虚拟化解决方案的最佳发行版是什么
- linux – 使用Vagrant从配置shell脚本更新.bashrc
- linux – 如何在gdb中搜索进程的所有内存?
- linux – 登录FIFO,然后重定向到文件?
- linux – 用于MongoDB分片的mongos和配置服务器的Init脚本
- linux – Tab完成Emacs的shell模式SSH会话
- 2014-03-10 09:14
- linux – 在rpm spec文件中列出两次文件