我如何快速检查是否使用Perl安装了Linux`unzip`? [英] How can I quickly check if Linux `unzip` is installed using Perl?

查看:66
本文介绍了我如何快速检查是否使用Perl安装了Linux`unzip`?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Perl快速检查是否已安装Linux unzip ?

How can I quickly check if Linux unzip is installed using Perl?

推荐答案

只需运行它即可.

严重.

想想为什么为什么要知道它是否已安装,是因为您需要稍后运行它.在那种情况下,仅仅知道是否已安装它是不够的.您还需要知道它是否可执行,是否在路径中,脚本在其下运行的用户ID是否具有运行它的必要特权,等等.您只需运行即可检查所有内容.

Presumably, the reason why you want to know if it is installed, is because you need to run it later. In that case, it isn't enough to know whether it is installed, anyway – you also need to know whether it is executable, whether it is in the path, whether the user id the script is running under has the necessary privileges to run it, and so on. You can check all that by simply just running it.

这篇关于我如何快速检查是否使用Perl安装了Linux`unzip`?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆