我vim在 Ubuntu 上使用打开了一个文件,屏幕底部显示以下内容:
"file.py" [noeol] 553L, 16620C
Run Code Online (Sandbox Code Playgroud)
是什么noeol指示?
在这个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) 我正在运行 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) 如果我在 crontab 中添加 5 个作业,它们是否并行异步执行?我的两个作业可能需要 10 分钟才能完成,我想知道是否需要在后台运行它们(通过在命令末尾添加 &)。