小编Bon*_*Ami的帖子

vim 编辑会话底部的 noeol 指示器是什么意思?

vim在 Ubuntu 上使用打开了一个文件,屏幕底部显示以下内容:

"file.py" [noeol] 553L, 16620C
Run Code Online (Sandbox Code Playgroud)

是什么noeol指示?

vim

43
推荐指数
2
解决办法
5万
查看次数

这个奇怪的 Makefile 目标“.PHONY”是什么意思?

在这个https://github.com/kubernetes/helm/blob/master/Makefile 中,目标前面有一个点。这个约定是为了什么?

.PHONY: all
all: build

.PHONY: build
build:
    GOBIN=$(BINDIR) $(GO) install $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/...
Run Code Online (Sandbox Code Playgroud)

make

9
推荐指数
1
解决办法
7640
查看次数

如何使用 hostnamectl 命令解决我的问题。它无法连接到 dbus

我正在运行 Debian 9.4。hostname作品。

$ sudo strace -f hostnamectl
...snipped...
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/dbus/system_bus_socket"}, 33) = -1 ENOENT (No such file or directory)
...

Failed to create bus connection: No such file or directory
Run Code Online (Sandbox Code Playgroud)

更新:这里有更多信息:

$ sudo systemctl status dbus.service dbus.socket
Unit dbus.service could not be found.
Unit dbus.socket could not be found.

$ ps -p 1 
PID TTY          TIME CMD
1   ?        00:00:47 systemd

$ sudo systemctl list-unit-files --state=running
0 unit files listed.

$ sudo systemctl list-unit-files --state=enabled
...snipped... …
Run Code Online (Sandbox Code Playgroud)

debian d-bus hostname systemd

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

cron 是否异步执行作业?

如果我在 crontab 中添加 5 个作业,它们是否并行异步执行?我的两个作业可能需要 10 分钟才能完成,我想知道是否需要在后台运行它们(通过在命令末尾添加 &)。

cron

3
推荐指数
1
解决办法
5014
查看次数

标签 统计

cron ×1

d-bus ×1

debian ×1

hostname ×1

make ×1

systemd ×1

vim ×1