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

部分命令的英文全称 #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions command/apt-get.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apt-get
===
`Advanced Package Tool Get`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以放到说明详情中, 命令介绍有别的用处。
@zz541843

如果你添加到此位置的 英文全称,那么命令的详情介绍就是英文全称

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没看懂,什么叫 "那么命令的详情介绍就是英文全称了" 我的想法就只是在命令这个标题下加个小注释的样子,知道全称是什么所以用``围了起来
image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在脚本中,需要爬命令的“详情“

image

所以全称不能放在这个位置。

@zz541843

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我应该知道你的意思了,我是觉得,这样显示出来的效果比放在补充说明里更直接一点。如果这样不行的话,那以后有空搞吧

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在脚本中,需要爬命令的“详情“

image

所以全称不能放在这个位置。

@zz541843

那确实是个问题...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样虽然也可以,就是视觉上略差一丢丢
image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果你愿意的话,把爬详情的代码从原来的第4行改成第6行就可以了,你现在也是规范的放在第4行

Copy link
Owner

@jaywcjlove jaywcjlove Apr 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let des = str.match(/\n==={1,}([\s\S]*?)##/i);

规范是从 === 到 第一个 ## 中间内容是详情,你这有的有 命令全称,有的没有。 把第一个 `` 两个点之间的内容为命令全称


Debian Linux发行版中的APT软件包管理工具

Expand Down
1 change: 1 addition & 0 deletions command/ar.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ar
===
`Archiver`

建立或修改备存文件,或是从备存文件中抽取文件

Expand Down
1 change: 1 addition & 0 deletions command/as.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
as
===
`Assembler`

汇编语言编译器

Expand Down
1 change: 1 addition & 0 deletions command/awk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
awk
===
`Aho Weiberger and Kernighan`

文本和数据进行处理的编程语言

Expand Down
1 change: 1 addition & 0 deletions command/bg.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
bg
===
`Background`

将前台终端作业移动到后台运行

Expand Down
1 change: 1 addition & 0 deletions command/cal.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cal
===
`Calendar`

显示当前日历或指定日期的日历

Expand Down
1 change: 1 addition & 0 deletions command/cat.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cat
===
`Concatenate`

连接多个文件并打印到标准输出。

Expand Down
1 change: 1 addition & 0 deletions command/cd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cd
===
`Change Directory`

切换用户当前工作目录。

Expand Down
1 change: 1 addition & 0 deletions command/chattr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
chattr
===
`Change Attribute`

用来改变文件属性

Expand Down
1 change: 1 addition & 0 deletions command/chgrp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
chgrp
===
`Change group`

用来变更文件或目录的所属群组

Expand Down
1 change: 1 addition & 0 deletions command/chmod.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
chmod
===
`Change Mode`

用来变更文件或目录的权限

Expand Down
1 change: 1 addition & 0 deletions command/chown.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
chown
===
`Change owner`

用来变更文件或目录的拥有者或所属群组

Expand Down
1 change: 1 addition & 0 deletions command/cp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cp
===
`Copy file`

将源文件或目录复制到目标文件或目录中

Expand Down
1 change: 1 addition & 0 deletions command/curl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
curl
===
`CommandLine URL`

利用URL规则在命令行下工作的文件传输工具

Expand Down
2 changes: 2 additions & 0 deletions command/dd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dd
===
`本来应根据其功能描述“Convert an copy”命名为“cc”
但“cc”已经被用以代表“CComplier”,所以命名为“dd”`

Comment on lines +3 to 5
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处如果新约定的 命令全称也不适合,是不是需要放到补充说明中还是比较好?
@zz541843

复制文件并对原文件的内容进行转换和格式化处理

Expand Down
1 change: 1 addition & 0 deletions command/df.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
df
===
`Disk Free`

显示磁盘的相关信息

Expand Down
1 change: 1 addition & 0 deletions command/diff.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
diff
===
`Difference`

比较给定的两个文件的不同

Expand Down
1 change: 1 addition & 0 deletions command/dmesg.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dmesg
===
`Diagnostic Message`

显示Linux系统启动信息

Expand Down
1 change: 1 addition & 0 deletions command/dpkg.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dpkg
===
`Debian package manager`

Debian Linux系统上安装、创建和管理软件包

Expand Down
1 change: 1 addition & 0 deletions command/du.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
du
===
`Disk Usage`

显示每个文件和目录的磁盘使用空间

Expand Down
1 change: 1 addition & 0 deletions command/ed.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ed
===
`Editor`

单行纯文本编辑器

Expand Down
1 change: 1 addition & 0 deletions command/egrep.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
egrep
===
`Extended Grep`

在文件内查找指定的字符串

Expand Down
1 change: 1 addition & 0 deletions command/elm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
elm
===
`Electronic Mail`

纯文本邮件客户端程序

Expand Down
1 change: 1 addition & 0 deletions command/emacs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
emacs
===
`Editor Macros`

功能强大的全屏文本编辑器

Expand Down
1 change: 1 addition & 0 deletions command/ex.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ex
===
`Extended`

启动vim编辑器的ex编辑模式

Expand Down
1 change: 1 addition & 0 deletions command/exec.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
exec
===
`Execute`

调用并执行指定的命令

Expand Down
1 change: 1 addition & 0 deletions command/fg.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
fg
===
`Foreground`

将后台作业移动到前台终端运行

Expand Down
1 change: 1 addition & 0 deletions command/fmt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
fmt
===
`Format`

读取文件后优化处理并输出

Expand Down
1 change: 1 addition & 0 deletions command/fsck.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
fsck
===
`File system check`

检查并且试图修复文件系统中的错误

Expand Down
1 change: 1 addition & 0 deletions command/gcc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
gcc
===
`GNU Compiler Collection`

基于C/C++的编译器

Expand Down
1 change: 1 addition & 0 deletions command/gdb.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
gdb
===
`GNU Debugger`

功能强大的程序调试器

Expand Down
1 change: 1 addition & 0 deletions command/grep.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
grep
===
`Global Regular Expression Print`

强大的文本搜索工具

Expand Down
1 change: 1 addition & 0 deletions command/ifconfig.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ifconfig
===
`Network Interfaces Configuring Command-line Tool For Controlling`

配置和显示Linux系统网卡的网络参数

Expand Down
1 change: 1 addition & 0 deletions command/insmod.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
insmod
===
`Install Module`

将给定的模块加载到内核中

Expand Down
1 change: 1 addition & 0 deletions command/ld.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ld
===
`GNU linker`

将目标文件连接为可执行程序

Expand Down
1 change: 1 addition & 0 deletions command/ldd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ldd
===
`List dynamic dependencies`

打印程序或者库文件所依赖的共享库列表

Expand Down
1 change: 1 addition & 0 deletions command/ln.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ln
===
`Link`

用来为文件创建链接

Expand Down
1 change: 1 addition & 0 deletions command/ls.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ls
===
`List files`

显示目录内容列表

Expand Down
1 change: 1 addition & 0 deletions command/lsattr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
lsattr
===
`List Attribute`

查看文件的第二扩展文件系统属性

Expand Down
1 change: 1 addition & 0 deletions command/lsmod.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
lsmod
===
`List modules`

显示已载入系统的模块

Expand Down
1 change: 1 addition & 0 deletions command/man.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
man
===
`Manual`

查看Linux中的指令帮助

Expand Down
1 change: 1 addition & 0 deletions command/mkdir.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mkdir
===
`Make Directory`

用来创建目录

Expand Down
1 change: 1 addition & 0 deletions command/mkfs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mkfs
===
`Make file system`

用于在设备上创建Linux文件系统

Expand Down
1 change: 1 addition & 0 deletions command/mv.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mv
===
`Move file`

用来对文件或目录重新命名

Expand Down
1 change: 1 addition & 0 deletions command/nc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
nc
===
`netcat`

用于设置路由器,是网络工具中的瑞士军刀。

Expand Down
1 change: 1 addition & 0 deletions command/nmap.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
nmap
===
`Network Mapper`

网络探测和安全审核

Expand Down
1 change: 1 addition & 0 deletions command/nmcli.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
nmcli
===
`NetworkManager`

地址配置工具

Expand Down
1 change: 1 addition & 0 deletions command/passwd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
passwd
===
`Passwd`

用于让用户可以更改自己的密码

Expand Down
1 change: 1 addition & 0 deletions command/printf.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
printf
===
`Print Formatted`

格式化并输出结果。

Expand Down
1 change: 1 addition & 0 deletions command/ps.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ps
===
`Process Status`

报告当前系统的进程状态

Expand Down
1 change: 1 addition & 0 deletions command/pushd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pushd
===
`Push Directory`

将目录添加到目录堆栈顶部。

Expand Down
1 change: 1 addition & 0 deletions command/pwd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pwd
===
`Print Work Directory`

显示当前工作目录的绝对路径。

Expand Down
1 change: 1 addition & 0 deletions command/rm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rm
===
`Remove`

用于删除给定的文件和目录

Expand Down
1 change: 1 addition & 0 deletions command/rmdir.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rmdir
===
`Remove Directory`

用来删除空目录

Expand Down
1 change: 1 addition & 0 deletions command/rmmod.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rmmod
===
`Remove Module`

从运行的内核中移除指定的内核模块

Expand Down
1 change: 1 addition & 0 deletions command/rpm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rpm
===
`RedHat Package Management`

RPM软件包的管理工具

Expand Down
1 change: 1 addition & 0 deletions command/rsync.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rsync
===
`Remote Sync`

远程数据同步工具

Expand Down
Loading