摘要:
生成器,迭代器 阅读全文
摘要:
‘ #compile,编译的使用 流程 code1='for i in range(10):print(i)' compile1=compile(code1,'','exec')#编译 #使用exec执行流程 exec(compile1) ''' 计算 获取简单结果 ''' code2='1+2+3+4' compile2=compile(code2,'','eval') print(e... 阅读全文
摘要:
//查看所有定时 crontab -l修改$ crontab -e //增加定时 //关闭定时 //删除定时$ crontab -r /sbin/service crond start //启动服务 /sbin/service crond stop //关闭服务 /sbin/service cron 阅读全文
摘要:
使用source执行脚本切换目录才有效 source ./chdir.sh 关闭容器脚本 删除镜像 docker rmi $(docker images -q -f dangling=true) 容器如果存在删除容器 if [ $(docker ps -aq --filter name= cicd- 阅读全文
摘要:
空间管理 硬盘使用百分比 df -hl 内存使用百分比 free -m 权限管理 添加用户到组 usermod -a -G groupA user 创建用户 useradd user 创建用户到组 useradd -g group user 查看用户属性 id docker 设置密码 passwd 阅读全文
摘要:
//配置邮箱,用户名, git config --global user.name git config --global user.email git config --global --list //生成ssh密码 ssh-keygen -t rsa -C "your account" 打开ss 阅读全文