* [room] Fwd: [nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format] New Comment On: My 10 UNIX Command Line Mistakes
@ 2014-02-10 20:04 Michael Shigorin
0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2014-02-10 20:04 UTC (permalink / raw)
To: smoke-room
Здравствуйте.
Бывает и так...
----- Forwarded message from Webmaster nixCraft -----
Date: Mon, 10 Feb 2014 17:46:41 +0000
Subject: [nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format] New Comment On: My 10 UNIX Command Line Mistakes
There is a new comment on the post "My 10 UNIX Command Line Mistakes".
http://www.cyberciti.biz/tips/my-10-unix-command-line-mistakes.html
Author: Moataz Elmasry
Comment:
Did the following in a script
[ -d ${MY_DIR} ] && rm -rf ${MY_DIR}/*
${MY_DIR} was not defined at all and it turned out, that [ -d ] returns true, so the command
rm -rf /*
has been executed
See all comments on this post here:
http://www.cyberciti.biz/tips/my-10-unix-command-line-mistakes.html#comments
To manage your subscriptions or to block all notifications from this site, click the link below:
[snip]
----- End forwarded message -----
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-10 20:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-10 20:04 [room] Fwd: [nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format] New Comment On: My 10 UNIX Command Line Mistakes Michael Shigorin
Культурный офтопик
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
public-inbox-index smoke-room
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.smoke-room
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git