数据删除需谨慎
今天真是的,全程不在状态,是出于什么样的心态会进行如下操作

原想是这样的,是要删除freewind-helper文件夹下的所有内容,结果莫明奇妙的执行了cd ..到父目录然后把父目录所有的文件全部删了,有不少重要的代码,在网上找了好久Mac rm 文件恢复,最后发现几乎无解,就这样吧
替换rm为放到回收站
为了防止再次出现上述误删除文件,我从网上找到了一种办法,就是将rm操作的文件放到回收站,只要我们发现的急时,再从回收站里恢复即可
安装trash
使用homebrew安装trash
brew install trash
此时已经可以trash filename来将文件移动到回收站了,但是对于习惯rm的我们来说还得进行一点改造
使用trash替换rm命令
根据使用的终端决定修改那个配置文件,例如我使用的是zsh,就在~/.zshrc里加入如下内容
alias rm="trash"最后source一下使其生效
source ~/.zshrc这样就OK啦,以后用rm删除的文件就会入到回收站里
下载看看
I drop a comment whenever I like a article on a site or I have something to valuable to contribute to the discussion. Usually it is a result of the fire displayed in the article I looked at. And on this article Freewind主题音乐播放器(老王重制版) - 冷文学习者. I was actually excited enough to post a comment :-) I actually do have a few questions for you if it's okay. Could it be just me or do some of these responses appear like left by brain dead people? :-P And, if you are posting at other places, I would like to keep up with everything new you have to post. Could you list the complete urls of your communal sites like your linkedin profile, Facebook page or twitter feed? Feel free to surf to my blog post :: https://bonusstats.com/en/bonus-7signs
Thanks for finally talking about >Freewind 1.5 更新 - 冷文学习者
下载看看
我要回复一下课件