标签: shell

wget 的错误代码“123”是什么意思

当我使用gun wget(版本1.13)来获取如下文件列表时:

cat url.txt | xargs wget -c -P ../data/
Run Code Online (Sandbox Code Playgroud)

然后,我得到退出代码 123,这意味着什么?

谢谢:)

linux bash shell

0
推荐指数
1
解决办法
4574
查看次数

Windows 10 中的设置(内幕预览)

我正在寻找以下屏幕截图中使用的工具或实用程序。它似乎是ConEmu 的替代品,但它并不相同。有谁知道工具名称是什么?

**请注意它是如何很好地让您拥有与 ConEmu 类似的命令外壳的多个选项卡:

在此处输入图片说明

请注意,这是一个 Windows 工具。

windows shell

0
推荐指数
1
解决办法
67
查看次数

无法 cd 进入名称中有空格的目录,即使有引号或转义

在 MacOS 机器上的 bash shell 中,我可以通过键入来看到ls有一个 Director Application Support

$ ls
Accounts                FontCollections     PreferencePanes
Application Scripts     Fonts               Preferences
Application Support     GameKit             Printers
Assistant               Google              PubSub
Assistants              Group Containers    Safari
Audio                   IdentityServices    SafariSafeBrowsing
Caches                  Input Methods       Saved Application State
Calendars               Internet Plug-Ins   Screen Savers
CallServices            Keyboard            Services
ColorPickers            Keyboard Layouts    Sharing
Colors                  KeyboardServices    Sounds
Compositions            Keychains           Spelling
Containers              LanguageModeling    Suggestions
Cookies                 LaunchAgents        SyncedPreferences
CoreFollowUp            Library             VirtualBox
Developer               Logs                Voices
Dictionaries            Mail                WebKit
F5Networks              Messages            com.apple.internal.ck
Family                  Metadata            iMovie …
Run Code Online (Sandbox Code Playgroud)

bash shell command-line macos

0
推荐指数
1
解决办法
310
查看次数

linux - bash - 读取:非法选项 -n

在 Ubuntu 上,我尝试暂停bash shell 脚本

!#/bin/bash
...
read -n 1 -p"pause"
Run Code Online (Sandbox Code Playgroud)

我到处都看到这种语法,所以我不明白为什么它不起作用

我收到这个错误

./build.sh: 14: read: Illegal option -n
Run Code Online (Sandbox Code Playgroud)

我也不明白的是,在阅读手册中,没有 -n -p 选项

Linux 中有两种不同的读取命令吗?

纯粹的

linux script shell

0
推荐指数
1
解决办法
2739
查看次数

Shell 是守护进程吗?

Linux 守护进程是作为 init 进程的一部分启动的程序。它不与终端关联。

因此,几乎所有启动运行级别 3 的 Linux 系统都会等待用户在终端登录。那么该终端进程是守护进程吗?

另外,如果系统启动到运行级别 5(使用 GUI),我很想认为在这种情况下,shell 不是守护进程。基本上,用户启动终端进程。如果是这种情况,该终端是否与自身关联(意味着同一终端)?

提前致谢。

linux unix operating-systems shell

0
推荐指数
1
解决办法
395
查看次数

Bash- 如何使 Linux 脚本文件人类不可读?

我见过许多可执行但无法读取的 Linux 脚本,因为它们是二进制格式。

我的问题是如何使我的脚本不可读/二进制格式?

linux script shell

-2
推荐指数
1
解决办法
2857
查看次数

“rm -rf /”VS。"mv -r //dev/null"

可能是一个愚蠢的问题,但对您的系统来说最糟糕的是什么?(我认为两者都是)但我认为 mv 将是“删除”所有内容的最快方法。我错了吗 ?(无论如何不要想测试^^)

linux shell rm mv

-4
推荐指数
1
解决办法
7819
查看次数

标签 统计

shell ×7

linux ×5

bash ×2

script ×2

command-line ×1

macos ×1

mv ×1

operating-systems ×1

rm ×1

unix ×1

windows ×1