Category: Shell

运行时报错:syntax error near unexpected token `$'\r'' 0

Run .sh or shell script files using WSL in Windows 10

浏览量: 9 1. Enable WSL, refer to: https://www.shuijingwanwq.com/en/2021/12/23/9949/ , execute to step 5 3, the existing test.sh file, the code is as follows 4. Run Windows Terminal as an administrator and execute the command:...

测试阿里云服务器基于 curl http 请求 http://httpbin.org/ip、https://www.google.com、https://www.youtube.com。连接成功 0

Implementation of HTTP requests Google and YouTube after installing v2ray in CentOS 7.x of Alibaba Cloud Continental ECS

浏览量: 9 1. List all version information and execute the command: lsb_release -a. Version: CentOS 7.7. as shown in Figure 1 2. Check the bash version: 4.2.46. as shown in Figure 2 3. Install...

在 Shell 中报错:[!: command not found 0

Error in shell: [!: Analysis solution of [!: command not found]

浏览量: 4 1. Report an error in the shell:[!: command not found,如图1 [Caption id=”attachment_4126″ align=”alignnone” width=”1363″]#ATFP_CLOSE_Translate_span# Figure 1[/caption]#atfp_close_translate_span# #atfp_close_translate_span# 2. Edit /build/c_files/config/init/console_init.sh. at[]Add spaces before and after. as shown in Figure 2 3. There...