码迷,mamicode.com
首页 >  
搜索关键字:file echo linux    ( 211108个结果)
shell脚本中如何给一段文字加颜色
shell脚本常用颜色如下:30:黑31:红32:绿33:黄34:蓝色35:紫色36:深绿37:白色echo-e"\033[31m红色字\033[0m"echo-e"\033[32m绿色字\033[0m"echo-e"\033[33m黄色字\033[0m"echo-e"\033[34m蓝色字\033[0m"让字体变为红
分类:系统相关   时间:2020-12-31 11:45:32    阅读次数:0
删除二层目录下的文件及文件夹
import os import time import shutil def del_file(filepath): """ 删除某一目录下的所有文件或文件夹 """ del_list = os.listdir(filepath) for f in del_list: file_path = os ...
分类:其他好文   时间:2020-12-31 11:42:16    阅读次数:0
asp.net core 5,0 项目中Add-Migration 执行报错 (可能不小心删掉了,安装后真的可以用了!!!)
错误提示: Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelli ...
分类:Web程序   时间:2020-12-30 11:32:15    阅读次数:0
Linux服务器上crontab命令与配置
crontab命令与配置 防止忘记,这里记录一下定时任务crontab的一些命令 crontab基本操作 1.安装crontabs服务 yum install crontabs 2.设置开机自启 systemctl enable crond 3.运行服务 systemctl start crond ...
分类:系统相关   时间:2020-12-30 11:31:39    阅读次数:0
阿里云服务器搭建wordpress博客
1、有一个阿里云服务器 2、安装宝塔linux: yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh 3、下载wordpress:官网下载https:/ ...
分类:其他好文   时间:2020-12-30 11:30:02    阅读次数:0
Linux 查看iptables状态-重启
iptables 所在目录 : /etc/sysconfig/iptables # service iptables status #查看iptables状态 # service iptables restart #iptables服务重启 # service iptables stop #ipta ...
分类:系统相关   时间:2020-12-30 11:29:45    阅读次数:0
线上环境 Linux 系统调用追踪
LiteOS Studio图形化调测能力,物联网打工人必备!>>> 提到如何动态追踪进程中的系统调用,相信大家第一时间都能想到 strace,它的基本用法非常简单,非常适合用来解决 “为什么这个软件无法在这台机器上运行?” 这类问题。但如果需要分析线上服务 (特别是延迟敏感型)的某些系统调用的延迟时 ...
分类:系统相关   时间:2020-12-30 11:29:26    阅读次数:0
saltstack3-状态管理-yum安装软件
状态管理-salt安装apache 编辑主配置文件,定义几个环境。 vim /etc/salt/master file_roots: base: - /srv/salt/base dev: - /srv/salt/dev test: - /srv/salt/test prod: - /srv/sal ...
分类:其他好文   时间:2020-12-30 11:27:09    阅读次数:0
SpringBoot项目添加EurekaClient日志出问题
问题症状 日志里同时出现正常的日志目录和 IS_UNDEFINED application.properties如下 logging.file.path=logs spring.application.name=mes logback-spring.xml配置 <?xml version="1.0" ...
分类:编程语言   时间:2020-12-30 11:23:04    阅读次数:0
Python之pandas读取excel心得
Python用pandas读取excel文件后其实是以字典方式保存。 如定义file是打开的文件,则: file = { '1列名':[0值,1值,2值,3值。。。], '2列名':[0值,1值,2值,3值。。。], '3列名':[0值,1值,2值,3值。。。], '4列名':[0值,1值,2值,3 ...
分类:编程语言   时间:2020-12-30 11:22:37    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!