fish shell 如何检查 root 2024-6-18 • fish 有没有办法使用 fish shell 断言当前“用户”是 root(即脚本由 root 运行)? 我知道对于 bash 你可以检查欧盟身份证 答案1 仅靠鱼是不行的。我会写: if test (id -u) -eq 0 echo root else echo not root end 相关内容 在 52 英寸 1080p 屏幕上显示 Nagios 如何在 Mac 上选择 Ubuntu 安装大小? 读取命令前的字符 Tabular 和 longtable 不会跨越多个页面 Acer Ferrari One 支持硬件辅助虚拟化吗? 如何将不同 LAN 上的两个桥接接口添加到 KVM? 如何配置电子邮件转发系统,可用作 DNS 中的“MX”记录 如何安装 Sentellic fspc 包? 如果备份作业已安排好并且出现某些提示,会发生什么情况? 当文件夹的物理路径不同时,我可以阻止 Windows 将文件夹显示为“我的图片”吗?