备注

激活office

http://kms.cangshui.net/

参考:https://www.jianshu.com/p/8671e439a811

nvm node版本切换

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
source ~/.bashrc
使用
nvm ls-remote 查看版本
nvm install version 安装版本
nvm use version 使用当前版本
nvm current 显示当前版本

yarn node包管理https://yarnpkg.com/zh-Hans/docs/install#centos-stable

curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repoy 
yum install yarn -y

文件批量转移
ll|awk '{print $9}'|xargs -n 1 -t -I {} mv {} /extra_data/old/

  xargs -p 显示执行的命令

 

awk '{a+=$1}END{print a/NR}' a

求和

posted @ 2018-10-30 11:11  codeforu2  阅读(157)  评论(0编辑  收藏  举报