我想知道特定 Debian 软件包为我提供的命令。
例如,假设我安装了一个名为x.deb
. 这个包肯定包含一些我可以使用的命令。
如何列出这些命令。
我知道我可以使用compgen
bash 命令来生成系统中所有可用命令的列表,但我只需要特定包。
我尝试了以下解决方案:
dpkg -L postgresql-9.3 | egrep '(bin|games)/'
/usr/lib/postgresql/9.3/bin/pg_upgrade
/usr/lib/postgresql/9.3/bin/pg_ctl
/usr/lib/postgresql/9.3/bin/pg_resetxlog
/usr/lib/postgresql/9.3/bin/postgres
/usr/lib/postgresql/9.3/bin/pg_xlogdump
/usr/lib/postgresql/9.3/bin/initdb
/usr/lib/postgresql/9.3/bin/pg_controldata
/usr/lib/postgresql/9.3/bin/postmaster
Run Code Online (Sandbox Code Playgroud)
我试过命令 postgres
user@userPc:~$ postgres
No command 'postgres' found, did you mean:
Command 'postgrey' from package 'postgrey' (universe)
postgres: command not found
Run Code Online (Sandbox Code Playgroud)