我看过一些例子展示了如何davfs2在 linux 下使用,但每个例子都涉及以下其中一件事情:
mount以 root 身份运行
添加条目到 /etc/fstab
运行mount.davfssetuid,唉,仍然需要输入/etc/fstab
这可以避免吗?如果不是,webdav 的哪些方面会阻止它,而不是例如 sshfs?
我正在运行 200 个进程,但是ulimit -u400个进程似乎会导致一些问题:
$ ps -A | wc -l
199
$ ulimit -u 400
zsh: fork failed: resource temporarily unavailable
Run Code Online (Sandbox Code Playgroud)
我糊涂了。为什么会达到极限?
编辑:最初ulimit -u给出
$ ulimit -u
47334
Run Code Online (Sandbox Code Playgroud) 假设我有一个名为foo.md.md(双后缀的原因将变得显而易见)的文件。
$ print *.md(om[1]) # Get the most recent .md file
foo.md.md
$ print *.md(om[1]:r) # Strip the suffix
foo.md
$ print *.md(om[1]:r).docx # Try to add a suffix -- oops that doesn't work
zsh: no matches found: *.md(om[1]:r).docx
$ print *.md(om[1]:s/.md/.docx/) # Try another way -- also falls short
foo.docx.md
$ f=(*.md(om[1])); print ${f:r}.docx # Store it in a variable -- works but verbose
foo.md.docx
Run Code Online (Sandbox Code Playgroud)
*.md(om[1]:r)如果我能以某种方式让 zsh在添加新后缀之前将其视为一个完整的模式,那么似乎一切都会好起来。或者,是否有某种方法可以将:s///修饰符锚定到字符串的末尾。
有什么办法可以实现这一点吗?