小编Mul*_*gan的帖子

ps 命令和 grep

为什么在进程列表中ps -ef | grep $$显示grep命令?不是在完成他的工作grep后被执行ps吗?

linux shell

8
推荐指数
1
解决办法
2261
查看次数

tr 中的补充选项

我无法理解与替换模式一起使用的命令中的complement(-c) 选项tr(即没有任何其他选项),例如:

回声 "a" | 驾驶室

为什么会产生:

AB根@斯莱克

ab没有换行符的字符串)?

linux bash shell

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

如何在“sshd_conf”中启用 SSHD 日志记录?

有了以下sshd_conf文件,如何启用服务器活动日志记录?sshd 日志的默认位置是什么?

#   $OpenBSD: sshd_config,v 1.98 2016/02/17 05:29:04 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# …
Run Code Online (Sandbox Code Playgroud)

ssh sshd

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

如何在批处理文件中使用带空格的路径?

我有一个简单的 Win 10 批处理脚本,用于在系统启动时在资源管理器中打开一堆文件夹,但是最后一个命令的路径包含空格存在问题,因为它没有按预期打开新的资源管理器窗口,而是打开一个带有路径作为系统命令:

@ECHO OFF
start C:\Users\Darek\Fallout2
start C:\Users\Darek\Fallout2\data\scripts
start C:\Users\Darek\Pobrane_2
start "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"
Run Code Online (Sandbox Code Playgroud)

我如何编写最后一个命令以使其正常工作?

windows batch-file cmd.exe

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

标签 统计

linux ×2

shell ×2

bash ×1

batch-file ×1

cmd.exe ×1

ssh ×1

sshd ×1

windows ×1