相关疑难解决方法(0)

为什么不使用“哪个”?那用什么?

当寻找的路径,可执行文件或检查,如果你在Unix shell中输入命令的名称会发生什么,有不同的公用事业过多(whichtypecommandwhencewherewhereiswhatishash,等)。

我们经常听说which应该避免。为什么?我们应该用什么来代替?

shell history which portability

422
推荐指数
4
解决办法
7万
查看次数

dnf - 如何显示已选择哪个镜像网址?

以下是bash日志的一部分,完整的日志可以在https://gist.github.com/limkokhole/f2a423112aa005f10862获取:

[xiaobai@xiaobai hello]$ dnf --verbose download --source readline
cachedir: /var/cache/dnf
Loaded plugins: noroot, needs-restarting, reposync, copr, playground, kickstart, Query, generate_completion_cache, builddep, download, config-manager, protected_packages, system-upgrade, debuginfo-install
DNF version: 0.6.4
repo: using cache for: spot-chromium
not found deltainfo for: Copr repo for chromium owned by spot
not found updateinfo for: Copr repo for chromium owned by spot
repo: using cache for: rpmfusion-nonfree-updates-testing
not found deltainfo for: RPM Fusion for Fedora 21 - Nonfree - Test Updates
not found updateinfo …
Run Code Online (Sandbox Code Playgroud)

fedora rpm rhel repository dnf

7
推荐指数
2
解决办法
1万
查看次数

确定当前外壳名称

可能的重复:
如何测试我在终端中使用的外壳?

如何确定当前的 shell 路径或 shell 名称?

我只需要区分shbash,但是便携式解决方案会很好。

shell bash

6
推荐指数
1
解决办法
5700
查看次数

标签 统计

shell ×2

bash ×1

dnf ×1

fedora ×1

history ×1

portability ×1

repository ×1

rhel ×1

rpm ×1

which ×1