随笔分类 -  Bash Shell

Shell命令&Bash Shell脚本
摘要:目录OS 换源脚本Centos7基础环境Git 安装脚本中间件脚本MySQL 安装脚本Nginx 安装脚本 OS 换源脚本 Centos7 #!/bin/bash cd /etc/yum.repos.d/ mkdir repo_bak mv *.repo repo_bak/ curl -o /etc 阅读全文
posted @ 2023-11-30 23:58 HOsystem 阅读(123) 评论(0) 推荐(0)
摘要:tar GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. tar:用于压缩和解压缩文件; 格式:tar 阅读全文
posted @ 2023-02-13 01:01 HOsystem 阅读(2447) 评论(0) 推荐(0)
摘要:nc (ncat) Ncat is a feature-packed networking utility which reads and writes data across networks from the command line; nc(ncat):Ncat是一个功能丰富的网络实用工具;支 阅读全文
posted @ 2022-12-27 21:50 HOsystem 阅读(4267) 评论(0) 推荐(0)
摘要:wc wc - print newline, word, and byte counts for each file wc: 统计文件的字节数、字数、行数。 格式: wc [OPTION]... [FILE]... 常用参数: | OPTION | 意义 | | | | | -w | 统计字数,或- 阅读全文
posted @ 2022-09-28 11:16 HOsystem 阅读(235) 评论(0) 推荐(0)
摘要:### awk gawk - pattern scanning and processing language; `awk`:gawk是Unix中原始awk程序的GNU版本,强大之处在于可以写脚本来读取文本行的数据,然后处理并显示数据; `格式`:gawk [参数] 常用参数: | OPTIONS 阅读全文
posted @ 2022-08-19 16:27 HOsystem 阅读(147) 评论(0) 推荐(0)
摘要:grep grep searches the named input FILEs (or standard input if no files are named, or if a single hyphen-minus (-) is given as file name) for lines co 阅读全文
posted @ 2022-05-03 01:33 HOsystem 阅读(1859) 评论(0) 推荐(0)
摘要:### sed sed - stream editor for filtering and transforming text; `sed`:利用脚本来处理、编辑文本文件; `格式`:sed [OPTION]... {script-only-if-no-other-script} [input-fi 阅读全文
posted @ 2022-04-30 23:35 HOsystem 阅读(575) 评论(0) 推荐(0)
摘要:[TOC] # curl ## 查看网页源码 直接在curl命令后加上网址,就可以看到网页源码。 ```shell $ curl www.baidu.com ``` ![image-20210705182205683](https://gitee.com/HOSystem/learning-note 阅读全文
posted @ 2021-07-08 10:57 HOsystem 阅读(3199) 评论(0) 推荐(1)
摘要:Sehll 变量 定义shell变量 定义变量时,变量名不加美元符号 your_name="AAA" #!/bin/bash you_name="hosystem" echo $you_name echo 拼接$you_name 注意,变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样 阅读全文
posted @ 2021-01-29 10:47 HOsystem 阅读(202) 评论(0) 推荐(0)