运维开发网

运维技术积累

运维开发网 https://www.qedev.com 2020-11-28 12:46 出处:51CTO 作者:Super孙文波
普通用户通过脚本非交互添加定时任务cron_job="0000*/opt/stella-k8s/cron_init_kerberos.sh"(crontab-l|grep-v"$cron_job";echo"$cron_job")|crontab-

普通用户通过脚本非交互添加定时任务

cron_job="00 00 * /opt/stella-k8s/cron_init_kerberos.sh"

( crontab -l | grep -v "$cron_job"; echo "$cron_job" ) | crontab -

tar 分片切割合并

split -b 1300m -a 2 stella-images.tar.gz stella-images.tar.gz.

cat stella-images.tar.gz.a* | tar -xv

Mac下安装oh-my-zsh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号