Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
建议在执行rm等危险命令时加入确认询问
Experiences and Insight
1501
views ·
7
replies ·
To
floor
Go
gentoo
deepin
2012-12-05 08:16
Author
一直都有人吐槽说一不小心就rm -r /或把/home格了(我会说我也二过一次吗?)前天又在Q群里听说有人把/home删了,老鸟也有失手的时候,希望deepin在这方面更人性化点呗~
Reply
Like 0
Favorite
View the author
All Replies
cxbii
deepin
2012-12-05 08:31
#1
这个建议不错,楼主可以去bug管理上报下,我手机不方便
Reply
Like 0
View the author
woodelf
deepin
2012-12-05 16:37
#2
我用tcsh,手动加入了rm确认。
Reply
Like 0
View the author
zhendongzhao
deepin
2012-12-05 18:54
#3
如果直接把 alias 放入系统的确可以方便很多人,但希望将 转译文件 放在用户目录下,这样方便 自己修改,毕竟每个人的习惯不一致。
Reply
Like 0
View the author
xliang9550
deepin
2012-12-05 20:57
#4
有一次想要删除当前目录下的所有文件(夹),想要执行以下命令:
su
rm -r ./*
结果键盘的“点”键突然失灵……
Reply
Like 0
View the author
isunny
deepin
2012-12-05 23:48
#5
删除/ 是需要加 --root-nopreserve 选项才可以被成功执行 如果rm -rf /home 我想只能是悲剧收场 因为它确实可以做到
Reply
Like 0
View the author
风起
deepin
2012-12-06 21:55
#6
其实官方可以实现个回收站的功能, 原理也很简单, 加删除, 挪下目录而已
Reply
Like 0
View the author
proudzhu
deepin
2012-12-07 00:39
#7
一般用rm -r /等时不是要用sudo提权吗?这个会要求输入密码的吧.
这个可以说是个人习惯问题吧,既然用su切换到root帐号,已经说明已经有一定的思想觉悟了......
想把rm当trash用的可以用这个东西
https://github.com/andreafrancia/trash-cli
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WhatsApp doesn't work in the official Deepin browser!
Frequent kernel panic error since the last kernel update.
erro no meu teclado
My 2 apps rewritten, submitted to store
Popular Events
More