-i
If you want to protect a directory from a careless
rm -rf *,touching a file named-iinside it will forcermto ask for confirmation :touch ~/important-directory/-iFrom Command Line Fu, via HN.
omg this is the best thing ever I’m very excited to tell the guy on my team who accidentally deleted his working directory last month.
-
attarraciali liked this
-
forswearbloo liked this
-
implausiblew liked this
-
exultationov liked this
-
appendagesig liked this
-
hentaisexvoyeur liked this
-
rhythmsubjec liked this
-
interracialcrazyblowjobs liked this
-
steve liked this
-
cheerleaderssuperbbw liked this
-
pandaranols liked this
-
couch liked this
-
recurrent-dreams liked this
-
bdotdub liked this
-
bdotdub reblogged this from ducban
-
ducban reblogged this from onethingwell and added:
Someday, this trick might save my life.
-
foundonweb reblogged this from onethingwell
-
tuku liked this
-
b-llzy reblogged this from onethingwell
-
b-llzy liked this
-
lautunnodelluvaselvatica reblogged this from onethingwell
-
allixsenos reblogged this from onethingwell
-
justinlowery liked this
-
geopet liked this
-
hint liked this
-
craiga liked this
-
benjaminstein liked this
-
iargetlam liked this
-
nem liked this
-
shinkaide liked this
-
prettyhuge reblogged this from onethingwell and added:
omg this is the best thing ever I’m very excited...tell the guy on my team who...
-
kxr liked this
-
marleau liked this
-
technotalk reblogged this from minimallinux
-
edham-arief liked this
-
passencore reblogged this from onethingwell
-
javierarce liked this
-
mosx reblogged this from onethingwell and added:
Very helpful. I was always tempted.../, now I can finally do
-
zoomorphic liked this
-
thesummerofmark liked this
-
tradaonline liked this
-
nucleonide liked this
-
justinalcon reblogged this from justinday
-
userdel reblogged this from minimallinux
-
jcg1013 said:
nice tip. now if there were something that would help when you mention the containing directory instead of “*” — rm -rf ~/important_directory
-
justinday reblogged this from onethingwell
-
onethingwell posted this
Short URL for this post: http://tmblr.co/Zxv3by5lKdAW