Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

针对文章内代码语法高亮与命令行下命令的区分建议 #4

Open
MyKings opened this issue Mar 19, 2019 · 3 comments
Open

Comments

@MyKings
Copy link

MyKings commented Mar 19, 2019

1. 建议说明

1.1 如系统命令:

$ cd /opt/Empire && ./setup/reset.sh

PS: 这里定义了bash环境,并且使用了$前缀, 来说明这个是在 linux 下操作

1.2 如工具命令:

(Empire) > listeners

PS: 这里定义了bash环境,并且使用了Empire前缀, 来说明这个是在 Empire 下操作

1.3 如 Shell 脚本:

#!/bin/bash

mkdir /opt/nmap_diff
d=$(date +%Y-%m-%d)
y=$(date -d yesterday +%Y-%m-%d)

/usr/bin/nmap -T4 -oX /opt/nmap_diff/scan_$d.xml 10.100.100.0/24 > /dev/null 2>&1
if [ -e /opt/nmap_diff/scan_$y.xml ]; then
   /usr/bin/ndiff /opt/nmap_diff/scan_$y.xml /opt/nmap_diff/scan_$d.xml > /opt/nmap_diff/diff.txt
fi

当然,由于英文版的编辑就没有区分这些,可能会对译者或读者造成一些困惑和误导,因此建议翻译时竟尽可能纠正这些错误,以方便读者理解与新手入门:)

@Snowming04
Copy link
Owner

很好的建议,但是这个工作量有点大,只能慢慢修改了。

@hadesangel
Copy link

请问,有实体书出版吗

@wizardforcel
Copy link

这个不用区分吧,代码就自己解释了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants