展开
拓展 关闭
订阅号推广码
GitHub
视频
公告栏 关闭
摘要: 执行时间 # 格式 f1 f2 f3 f4 f5 program # 其中 f1 是表示分钟,f2 表示小时,f3 表示一个月份中的第几日,f4 表示月份,f5 表示一个星期中的第几天。program 表示要执行的程序。 当 f1 为 * 时表示每分钟都要执行 program,f2 为 * 时表示每 阅读全文
posted @ 2024-05-15 11:29 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 案例 # 新建脚本 [root@VM-12-15-centos home]# vi test1.sh # 编写如下 username="goudan" # 新建脚本 [root@VM-12-15-centos home]# vi test2.sh # 编写如下 #使用 . 号来引用test1.sh 阅读全文
posted @ 2024-05-15 11:17 DogLeftover 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 输出重定向 # 格式 命令 > 文件名 # 案例 [root@VM-12-15-centos home]# who > users # 生成文件 [root@VM-12-15-centos home]# ls users # 查看 [root@VM-12-15-centos home]# cat u 阅读全文
posted @ 2024-05-14 20:18 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 定义函数 [root@VM-12-15-centos home]# vi test.sh # 编写如下 demoFun(){ echo "这是我的第一个 shell 函数!" } echo " 函数开始执行 " demoFun echo " 函数执行完毕 " # 执行脚本 [root@VM-12-1 阅读全文
posted @ 2024-05-14 16:45 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 算术运算符 点击查看详情 运算符 说明 举例 + 加法 expr $a + $b 结果为 30。 - 减法 expr $a - $b 结果为 -10。 * 乘法 expr $a \* $b 结果为 200。 / 除法 expr $b / $a 结果为 2。 % 取余 expr $b % $a 结果为 阅读全文
posted @ 2024-05-14 15:39 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 判断 fi [root@VM-12-15-centos home]# vi test.sh # 编写如下 a=100 b=100 if test $[a] -eq $[b] ; then echo "true"; fi # 执行 [root@VM-12-15-centos home]# sh tes 阅读全文
posted @ 2024-05-14 11:36 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 数值 案例1 [root@VM-12-15-centos home]# vi test.sh # 编写如下 num1=100 num2=100 if test $[num1] -eq $[num2] then echo '两个数相等!' else echo '两个数不相等!' fi # 执行 [ro 阅读全文
posted @ 2024-05-14 11:05 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 打印字符串 [root@VM-12-15-centos home]# printf "Hello, Shell\n" Hello, Shell 编写脚本 [root@VM-12-15-centos home]# vi test.sh # 编写如下 printf "%-10s %-8s %-4s\n" 阅读全文
posted @ 2024-05-14 10:35 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 打印字符串 echo "It is a test" 打印特殊字符 echo "\"It is a test\"" # 输出结果 "It is a test" 打印变量 # read表示接收执行脚本的输入的第1行 # 编辑 [root@VM-12-15-centos home]# vi test.sh 阅读全文
posted @ 2024-05-13 19:32 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 执行脚本时传入参数 [root@VM-12-15-centos home]# vi test.sh # 编写如下 echo "Shell 传递参数实例!"; echo "执行的文件名:$0"; echo "第一个参数为:$1"; echo "第二个参数为:$2"; echo "第三个参数为:$3"; 阅读全文
posted @ 2024-05-13 18:45 DogLeftover 阅读(4) 评论(0) 推荐(0) 编辑
摘要: shell脚本 [root@localhost ~]# cd /home # 编辑 [root@localhost home]# vi test.sh # 编写如下 #!/bin/bash echo "Hello World !" # 设置权限 [root@localhost home]# chmo 阅读全文
posted @ 2024-05-08 17:36 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: vim # 编辑文件,进入命令模式 vim 文件名称 # 编辑文件,进入输入模式 i [ a | o ] # 从输入模式退出到命令模式 Esc # 从命令模式退出,退出编辑 :w 保存文件。 :q 退出 Vim 编辑器。 :wq 保存文件并退出 Vim 编辑器。 :q! 强制退出Vim编辑器,不保存 阅读全文
posted @ 2024-05-08 16:31 DogLeftover 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 磁盘空间占用情况 df [-ahikHTm] [目录或文件名] -h:可读的方式显示输出结果(例如,使用 KB、MB、GB 等单位)。 -T:显示文件系统的类型。 -t <文件系统类型>:只显示指定类型的文件系统。 -i:显示 inode 使用情况。 -H:该参数是 -h 的变体,但是使用 1000 阅读全文
posted @ 2024-05-08 16:02 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 已经安装了gcc C:\Users\ychen>gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/lt 阅读全文
posted @ 2024-05-07 18:08 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 官网 打开cmd安装依赖 C:\Users\ychen>pip install scipy Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Requirement already satisfied: scipy in c:\p 阅读全文
posted @ 2024-05-06 11:14 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 官网 安装 # 打开cmd C:\Users\ychen>pip install pyecharts Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting pyecharts Downloading https: 阅读全文
posted @ 2024-05-06 10:56 DogLeftover 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 添加账号 useradd [选项] 用户名 -c comment 指定一段注释性描述 -d 目录 指定用户主目录,如果此目录不存在,则同时使用-m选项,可以创建主目录 -m 用于创建用户的家目录。如果-d选项已经指定了家目录的路径,并且该目录不存在,则-m选项会告诉useradd创建该目录。如果-d 阅读全文
posted @ 2024-04-30 16:19 DogLeftover 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 路径 # 绝对路径 /usr/share/doc # 相对路径 cd ../man 查看 ls -[ a | d | l ] -a :全部的文件,连同隐藏文件( 开头为 . 的文件) 一起列出来(常用) -d :仅列出目录本身,而不是列出目录内的文件数据(常用) -l :长数据串列出,包含文件的属性 阅读全文
posted @ 2024-04-30 14:01 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 查看 [root@localhost ~]# ls -l total 64 dr-xr-xr-x 2 root root 4096 Dec 14 2012 bin [root@localhost ~]# ll 总用量 4 -rw . 1 root root 1258 3月 7 14:47 anaco 阅读全文
posted @ 2024-04-29 21:58 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 打开puttygen.exe 选择默认 开始生成 在这个过程中鼠标要来回的动,否则这个进度条是不会动的,保存公钥和私钥 先用ssh登录Linux [root@localhost ~]# mkdir /root/.ssh [root@localhost ~]# chmod 700 /root/.ssh 阅读全文
posted @ 2024-04-28 21:44 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 系统运行级别 运行级别0:系统停机状态,系统默认运行级别不能设为0,否则不能正常启动 运行级别1:单用户工作状态,root权限,用于系统维护,禁止远程登录 运行级别2:多用户状态(没有NFS) 运行级别3:完全的多用户状态(有NFS),登录后进入控制台命令行模式 运行级别4:系统未使用,保留 运行级 阅读全文
posted @ 2024-04-28 12:58 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 名称 详情 /bin 是 Binaries (二进制文件) 的缩写, 这个目录存放着最经常使用的命令 /boot 这里存放的是启动 Linux 时使用的一些核心文件,包括一些连接文件以及镜像文件 /dev 是 Device(设备) 的缩写, 该目录下存放的是 Linux 的外部设备,在 Linux 阅读全文
posted @ 2024-04-28 11:39 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码案例 <!DOCTYPE html> <html> <head> <script src="https://cdn.amcharts.com/lib/5/index.js"></script> <script src="https://cdn.amcharts.com/lib/5/xy.js"> 阅读全文
posted @ 2024-04-26 17:50 DogLeftover 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 代码案例 <!DOCTYPE html> <html> <head> <script src="https://cdn.amcharts.com/lib/5/index.js"></script> <script src="https://cdn.amcharts.com/lib/5/xy.js"> 阅读全文
posted @ 2024-04-26 16:06 DogLeftover 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 代码案例 <!DOCTYPE html> <html> <head> <script src="https://cdn.amcharts.com/lib/5/index.js"></script> <script src="https://cdn.amcharts.com/lib/5/xy.js"> 阅读全文
posted @ 2024-04-26 16:02 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码案例 <!DOCTYPE html> <html> <head> <script src="https://cdn.amcharts.com/lib/5/index.js"></script> <script src="https://cdn.amcharts.com/lib/5/xy.js"> 阅读全文
posted @ 2024-04-26 15:58 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码案例 <!DOCTYPE html> <html> <head> <script src="https://cdn.amcharts.com/lib/5/index.js"></script> <script src="https://cdn.amcharts.com/lib/5/xy.js"> 阅读全文
posted @ 2024-04-26 15:54 DogLeftover 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 甜甜圈动画 代码如下 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> <script src="http 阅读全文
posted @ 2024-04-26 14:58 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 基础 代码如下 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> <script src="https:/ 阅读全文
posted @ 2024-04-26 14:50 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 响应配置 代码如下 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> <script src="https 阅读全文
posted @ 2024-04-26 14:45 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 多行标签 代码如下 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> <script src="https 阅读全文
posted @ 2024-04-26 14:40 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 双极条形图 代码案例 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> <script src="http 阅读全文
posted @ 2024-04-26 14:31 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 线插值/平滑 代码如下 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> </head> <body> < 阅读全文
posted @ 2024-04-26 14:20 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 事件替换图形 代码如下 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> </head> <body> < 阅读全文
posted @ 2024-04-26 11:38 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 折线散点图 代码如下 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> </head> <body> <d 阅读全文
posted @ 2024-04-26 11:04 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 数据漏洞 代码案例 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="./chartist.min.css"> <script src="./chartist.min.js"></script> </head> <body> <di 阅读全文
posted @ 2024-04-26 10:57 DogLeftover 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 参考 代码如下 <!DOCTYPE html> <html> <head> <script src="https://cdn.amcharts.com/lib/5/index.js"></script> <script src="https://cdn.amcharts.com/lib/5/xy.j 阅读全文
posted @ 2024-04-26 10:32 DogLeftover 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 添加新文本框 开始,绘图,形状,基本性质,文本框 新增节 右键左侧侧边栏,新增节 使用大纲 视图,演示文稿视图,大纲视图 侧边栏,点击右下角 页面方向 设计,自定义,幻灯片大小,自定义幻灯片大小,方向,纵向 幻灯片编号 插入,文本,幻灯片编号,例如页脚插入1,点击应用则只在当前页面插入,点击全部应用 阅读全文
posted @ 2024-04-24 17:32 DogLeftover 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 设置页码 插入,页码,页面底端 换行符 Shift + Enter 表格 插入,表格 选中多个表格,右键,合并单元格 文本居中:开始,段落,居中;右键,表格属性,单元格,居中 页面旋转 布局,纸张方向,横向 背景 插入,形状,圆角矩形,拖动鼠标,绘制出一个圆角矩形 按住图中左上角的黄色圆点,拖动鼠标 阅读全文
posted @ 2024-04-24 17:30 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 代码案例 <!DOCTYPE html> <html lang="en"> <head> <title>Network</title> <script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/v 阅读全文
posted @ 2024-04-24 16:28 DogLeftover 阅读(4) 评论(0) 推荐(0) 编辑