shell 命令: MD5等

1、MD5

brew install md5sha1sum  #安装

echo -n '123456'|md5sum|cut -d ' ' -f1 

 

2、查看自己是什么shell环境

echo $SHELL

 zsh,默认编译环境变量文件为.zshrc,

vim ~/.zshrc

bash,

open -e .bash_profile

vim ~/.bash_profile

source ~/.bash_profile    # source:在当前bash环境下读取并执行FileName中的命令。

  

3, Mac OS  

  $ sw_vers

  $ id

4. 

curl https://www.baidu.com

 ping www.baidu.com

 

posted @ 2021-03-09 14:19  尘恍若梦  阅读(460)  评论(0编辑  收藏  举报