一、脚本 [root@localhost package]# vim PerformanceData.sh #!/bin/bash #**************************************************** #Date: 2020-06-28 #Author: Dam ...
分类:
其他好文 时间:
2020-06-28 12:42:14
阅读次数:
71
1、判断1.1 if语句if condition;then commandfi示例:#!/bin/bashif [ `ps -elf | grep -c ssh` -gt 1 ]; then echo "true"fi命令行展示:if [ `ps -elf | grep -c ssh` -gt 1 ...
分类:
系统相关 时间:
2020-06-28 00:39:18
阅读次数:
78
Ubuntu 20.04 安装微信、qq等 1.安装前准备 安装必要的工具及deepin-wine依赖 sudo apt install wget g++ git #如已安装可自行跳过 2.安装deepin-wine git clone "https://gitee.com/wszqkzqk/dee ...
分类:
微信 时间:
2020-06-28 00:23:15
阅读次数:
1079
Ubuntu操作系统运行apt update命令时会卡在Connecting to security.ubuntu.com,搭了梯子也无法解决 尝试了网络上的方法,如: https://blog.csdn.net/v6543210/article/details/81562266 https://u ...
分类:
系统相关 时间:
2020-06-28 00:08:44
阅读次数:
162
ubuntu20.04更改登陆背景 下载 ubuntu-20.04-change-gdm-background 这个sh文件 wget github.com/thiggy01/ubuntu-20.04-change-gdm-background/raw/master/ubuntu-20.04-cha ...
分类:
系统相关 时间:
2020-06-28 00:00:09
阅读次数:
496
ubuntu安装软件有多种方式。 一、使用iso文件挂载到本地,然后使用iso镜像进行软件安装。缺点:需要将操作系统打包做iso镜像。 二、使用apt-mirror下载第三方源到本地,然后使用apache做服务,制作局域网源。缺点:第三方源很大,一般都是几十G,需要下载很久,而且占用磁盘很大。 三、 ...
分类:
系统相关 时间:
2020-06-27 20:15:11
阅读次数:
170
1.安装 sshpass apt-get install sshpass 2.携带密码登录 sshpass -p '12345678' ssh root@ip ...
分类:
系统相关 时间:
2020-06-27 19:49:44
阅读次数:
131
1、useradd zhangsan //创建用户 2、passwd zhangsan //设置密码 3、vi /etc/ssh/sshd_config //设置sshd #注释掉这行#Subsystem sftp /usr/libexec/openssh/sftp-server#添加Subsyst ...
分类:
系统相关 时间:
2020-06-27 15:54:44
阅读次数:
58
目标 关机/重启 shutdown 查看或配置网卡信息 ifconfig ping 远程登录和复制文件 ssh scp 01. 关机/重启 序号命令对应英文作用 01 shutdown 选项 时间 shutdown 关机/重新启动 1.1 shutdown shutdown 命令可以 安全 关闭 或 ...
分类:
系统相关 时间:
2020-06-27 11:46:39
阅读次数:
73
#Path类 python对系统文件操作的类 ###导入 from pathlib import Path ###初始化 对文件或者目录进行初始化 p = Path() #对当前目录进行初始化 p1 = Path('/etc/ssh/sshd_config') #对文件进行初始化 p2 = Path ...
分类:
编程语言 时间:
2020-06-27 11:45:21
阅读次数:
78