fix(guide) Replace invalid prism code block names (#35961)
* fix: replace sh with shell fix replace terminal with shell fix replace node with js fix replace output with shell fix replace cs with csharp fix replace c++ with cpp fix replace c# with csharp fix replace javasctipt with js fix replace syntax with js fix replace unix with shell fix replace linux with shell fix replace java 8 with java fix replace swift4 with swift fix replace react.js with jsx fix replace javascriot with js fix replace javacsript with js fix replace c++ - with cpp fix: corrected various typos fix: replace Algorithm with nothing fix: replace xaml with xml fix: replace solidity with nothing fix: replace c++ with cpp fix: replace txt with shell fix: replace code with json and css fix: replace console with shell
This commit is contained in:
committed by
Oliver Eyton-Williams
parent
4b4762716c
commit
0a1eeea424
@@ -63,7 +63,7 @@ localeTitle: 基本Linux命令
|
||||
15. **grep** - grep搜索任何给定的输入文件,选择与一个或多个模式匹配的行。
|
||||
- 使用`grep`查找文件,目录,文件/目录中的一些文本。
|
||||
**例子:**
|
||||
```sh
|
||||
```shell
|
||||
$ ps ax | grep -w login
|
||||
25291 s000 Ss 0:00.11 login -pf <user>
|
||||
25467 s000 R+ 0:00.00 grep -w login
|
||||
|
||||
@@ -22,7 +22,7 @@ Linux的终端不用担心,实际上它很容易使用一些练习,它可以
|
||||
|
||||
cd(更改目录) - cd命令是您在linux命令行中使用最多的命令之一。它允许您更改工作目录。您可以使用它在文件系统的层次结构中移动。
|
||||
|
||||
```unix
|
||||
```shell
|
||||
cd
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ cd
|
||||
|
||||
ls(List) - 该命令列出当前目录中的内容。它还可以用于列出文件信息。
|
||||
|
||||
```unix
|
||||
```shell
|
||||
ls
|
||||
```
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ localeTitle: 如何使用SFTP通过远程服务器安全地传输文件
|
||||
|
||||
如果您还没有,请测试您是否能够SSH到服务器。 SFTP使用Secure Shell(SSH)协议,因此如果您无法通过SSH,您可能也无法使用SFTP。
|
||||
|
||||
```unix
|
||||
```shell
|
||||
ssh your_username@hostname_or_ip_address
|
||||
```
|
||||
|
||||
@@ -18,13 +18,13 @@ ssh your_username@hostname_or_ip_address
|
||||
|
||||
它使用与SSH相同的语法,并打开一个可以传输文件的会话。
|
||||
|
||||
```unix
|
||||
```shell
|
||||
sftp your_username@hostname_or_ip_address
|
||||
```
|
||||
|
||||
要列出有用的命令:
|
||||
|
||||
```unix
|
||||
```shell
|
||||
help
|
||||
```
|
||||
|
||||
@@ -32,19 +32,19 @@ help
|
||||
|
||||
要下载文件:
|
||||
|
||||
```unix
|
||||
```shell
|
||||
get <filename>
|
||||
```
|
||||
|
||||
要下载文件夹及其内容,请使用“-r”标志(也可用于上载):
|
||||
|
||||
```unix
|
||||
```shell
|
||||
get -r <foldername>
|
||||
```
|
||||
|
||||
要上传文件:
|
||||
|
||||
```unix
|
||||
```shell
|
||||
put <filename>
|
||||
```
|
||||
|
||||
@@ -52,13 +52,13 @@ put <filename>
|
||||
|
||||
要更改本地文件夹:
|
||||
|
||||
```unix
|
||||
```shell
|
||||
lcd <path/to/folder>
|
||||
```
|
||||
|
||||
要更改远程文件夹:
|
||||
|
||||
```unix
|
||||
```shell
|
||||
cd <path/to/folder>
|
||||
|
||||
```
|
||||
@@ -10,7 +10,7 @@ RPM包文件是Red Hat Package Manager文件,可以在Red Hat / CentOS Linux
|
||||
|
||||
第1步:检查是否存在现有存储库。
|
||||
|
||||
```sh
|
||||
```shell
|
||||
#yum repolist
|
||||
```
|
||||
|
||||
@@ -18,19 +18,19 @@ RPM包文件是Red Hat Package Manager文件,可以在Red Hat / CentOS Linux
|
||||
|
||||
第2步:将目录更改为
|
||||
|
||||
```sh
|
||||
```shell
|
||||
#cd /etc/yum.repos.d
|
||||
```
|
||||
|
||||
第3步:创建新文件
|
||||
|
||||
```sh
|
||||
```shell
|
||||
#vim myrepo.repo
|
||||
```
|
||||
|
||||
第4步:在文件中键入以下行
|
||||
|
||||
```sh
|
||||
```shell
|
||||
[file-name]
|
||||
name=filename
|
||||
baseurl="location of yum repositories"
|
||||
@@ -41,7 +41,7 @@ RPM包文件是Red Hat Package Manager文件,可以在Red Hat / CentOS Linux
|
||||
|
||||
第6步:重复步骤1
|
||||
|
||||
```sh
|
||||
```shell
|
||||
You Will find repositories
|
||||
|
||||
```
|
||||
@@ -14,7 +14,7 @@ localeTitle: Linux命令行的剖析
|
||||
|
||||
要开始使用打开终端(对于Ubuntu只需按住Ctrl + Alt + T),你会受到以这种格式排列的一系列字符的欢迎;
|
||||
|
||||
```linux
|
||||
```shell
|
||||
user_name@machine_name:~$
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user