美文网首页
shell 指令集合(不定期更新)

shell 指令集合(不定期更新)

作者: 枫叶栈 | 来源:发表于2018-08-19 10:22 被阅读0次
指令 作用
cd 进入目录
ls 查看目录
du -sh * 查看当前目录下文件及文件夹大小
rm -rf 目录/文件 强制删除文件
mv a.txt b.txt 移动文件 同目录下表示更改文件名
mv a.txt b.txt 移动文件 同目录下表示更改文件名
clear 等同于win的cls 清除窗口数据
source .bash_profile 使配置文件生效(.bash_profile为当前用户配置环境变量 )
defaults write com.apple.finder AppleShowAllFiles -bool true mac 显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool false mac 不显示隐藏文件
openssl dgst -sha256 压缩包 查看文件sha256

相关文章

网友评论

      本文标题:shell 指令集合(不定期更新)

      本文链接:https://www.haomeiwen.com/subject/gufciftx.html