码迷,mamicode.com
首页 >  
搜索关键字:sed shell 偶数和    ( 37253个结果
linux常用命令
1.ls命令 红色:表示hello.sh这个文件的所有者是root 绿色:表示hello.sh这个文件的所属组是root组。 分所有者和所有组是为了分配权限,rwxr-xr-x,中rwx的权限分配给所有者,即hello.sh这个文件,所有者root有读r,写w,执行x的权限,所属组root的权限是r ...
分类:系统相关   时间:2021-05-23 23:26:47    阅读次数:0
xshell登录阿里云服务器操作
一、xshell中新建连接,在该窗口添加公网IP,如图: 二、点击用户身份验证,用户名默认为root,密码为阿里云服务器的实例密码,输入完点击连接即可。 三、不知道实例密码在哪里?登录阿里云控制台--选中云服务器ESC--选中服务器--点击重置实例密码即可。 ...
分类:系统相关   时间:2021-05-23 23:00:50    阅读次数:0
ssh登录基于key验证
ssh基于key验证 1,在客户端生成公钥私钥对并将公钥拷到要连接的服务器上,验证是否成功 [root@localhost ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the k ...
分类:其他好文   时间:2021-05-23 22:59:40    阅读次数:0
linux的shell编程
1.什么是shell 命令解释器,将abcd翻译成010101发给内核,让机器看懂,内核处理后,返回101010,shell反编译成dcba呈现给终端,让人看懂。 2.shell分类 shell类别 易学性 可移植性 编辑性 快捷性 Bourne Shell -- sh 容易 好 较差 较差 Kor ...
分类:系统相关   时间:2021-05-04 16:31:26    阅读次数:0
树莓派4B-搭建Jenkins
官网下载Jenkins https://www.jenkins.io/zh/download/ 构建jenkins镜像 # docker build -t jenkins:2.277.3 . from ubuntu:latest run sed -i 's/ports.ubuntu.com/mirr ...
分类:其他好文   时间:2021-05-04 16:25:44    阅读次数:0
0630. Course Schedule III (H)
Course Schedule III (H) There are n different online courses numbered from 1 to n. You are given an array courses where courses[i] = [durationi, lastD ...
分类:其他好文   时间:2021-05-04 16:09:30    阅读次数:0
shell逐行读取替换
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:系统相关   时间:2021-05-03 12:39:24    阅读次数:0
Golang包管理工具govendor的使用&go mod
govendor简介 golang工程的依赖包经常使用go get命令来获取,例如:go get github.com/kardianos/govendor ,会将依赖包下载到GOPATH的路径下。 常用的依赖包管理工具有godep,govendor等,在Golang1.5之后,Go提供了 GO15 ...
分类:其他好文   时间:2021-05-03 12:03:26    阅读次数:0
Crontab 的使用
crontab 用于设置定时任务,通过 cat /etc/crontab 可查看 crontab 示例: $ cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details s ...
分类:其他好文   时间:2021-05-03 11:54:27    阅读次数:0
python调用钉钉机器人发起通知
有时候需要做个某些服务的状态监控,用钉钉机器人发通知挺方便的。可以用shell脚本配合crontab检测状态,检测到异常就调用python脚本发起告警。 python内容 此处用的python3,需要先安装requests模块。pip install requests -i https://mirr ...
分类:编程语言   时间:2021-04-30 12:35:08    阅读次数:0
37253条   上一页 1 ... 15 16 17 18 19 ... 3726 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!