Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Tue May 31, 2005 6:07 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
surferdude wrote:
I believe so, Because when I ran netstat, it took about 5 miniutes to finish. When my bandwith is replenished, ill enable traffic again and see how things go.


lol you *think* so? . . . am I missing something or are you just letting ranodm people run ircds on your boxen?


Top
   
 Post subject:
PostPosted: Thu Jun 02, 2005 9:41 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 12:35 am
Posts: 118
Website: http://www.necrobones.com/
Location: Sterling, VA
OverlordQ wrote:
surferdude wrote:
I believe so, Because when I ran netstat, it took about 5 miniutes to finish. When my bandwith is replenished, ill enable traffic again and see how things go.


lol you *think* so? . . . am I missing something or are you just letting ranodm people run ircds on your boxen?


I had assumed he had 4 ircds running on 4 different irc networks with tons of channel feeds. Heh. :)

_________________
----
Ed/Bones.


Top
   
 Post subject:
PostPosted: Sun Jun 05, 2005 2:48 pm 
Offline
Senior Member

Joined: Sat Mar 19, 2005 3:29 pm
Posts: 50
Website: http://ryantate.com
Location: Berkeley, CA
Code:
cp apachectl /etc/init.d


@&%#!

Quote:
root@li9-121 /usr/local/apache2/bin [516] cp apachectl /var/init.d
root@li9-121 /usr/local/apache2/bin [517] cd /var/init.d
bash: cd: /var/init.d: Not a directory


PS In case you're wondering "what was he thinking," I got into a bad habit with mv, from the manpage:
Quote:
mv [OPTION]... SOURCE... DIRECTORY


--
Update:
What the truck? I just cd-ed into /etc/init.d. Everything is back. Is this the work of the linux fairy or what? I've been backing up my files with the intention of wiping clean my linode. Looks like I don't have to. Yippee! 8)


Top
   
 Post subject:
PostPosted: Mon Jun 06, 2005 6:54 am 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
This is why, when I copy or move something into a directory I always put "/." on the end to make it clear that I'm expecting it to be a directory - "cp apachectl /var/init.d/." would do exactly the right thing if the directory existed, but would give an error if it didn't. :D

[edit: And, oh, I thought you realised the mistake in your post, but given your update, perhaps you didn't. You were copying it to /var/init.d/ , not /etc/init.d/ . :D You now have a *file* called /var/init.d.]


Top
   
 Post subject:
PostPosted: Mon Jun 06, 2005 6:59 pm 
Offline
Senior Member

Joined: Sat Mar 19, 2005 3:29 pm
Posts: 50
Website: http://ryantate.com
Location: Berkeley, CA
Ahhh ... I thought I overwrote the important init.d, which would be in /etc. Is there such a thing as /var/init.d? Not such a dumb mistake then, if not. If so, how important is /var/init.d?

I'm relieved ... I think ;->


Top
   
 Post subject:
PostPosted: Mon Jun 06, 2005 7:34 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
/var/init.d isn't anything. Move it back to apachectl and you should be fine. :-)


Top
   
 Post subject:
PostPosted: Tue Nov 15, 2005 7:10 am 
Offline
Junior Member

Joined: Sun Mar 13, 2005 4:42 am
Posts: 40
Stupidest thing I've done.
OK, so I've signed up for a free trial license of cPanel ( http://cpanel.net ).
I went and installed it on a LINODE 64.
After slugging through the installation process, a whopping 5% of my bandwidth was consumed, I'm running out of disk space, running out of IO tickets and when idle, the load average was around 6.0. o.o

Moral: cPanel is EVIL! Don't install it.


Top
   
 Post subject:
PostPosted: Tue Mar 14, 2006 5:13 am 
Offline
Senior Newbie

Joined: Thu Oct 06, 2005 8:55 am
Posts: 17
ICQ: 127444488
Website: http://kevinsnet.com
WLM: msnmsgr@compalumpa.org
Yahoo Messenger: cm00tito
AOL: cm00tito
Location: NJ USA
Well, I remembered seeing this thread here a while ago and reading through it...

5 minutes ago:
Code:
root@redbaron:~# rm /etc/*


....that was not fun :(

_________________
Kevin C. Leacock
cmantito 'at' cmantito 'dot' com

"A train station is where a train stops. A bus station is where a bus stops. On my desk I have a workstation..."


Top
   
 Post subject:
PostPosted: Tue Mar 14, 2006 11:17 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 12:35 am
Posts: 118
Website: http://www.necrobones.com/
Location: Sterling, VA
cmantito wrote:
5 minutes ago:
Code:
root@redbaron:~# rm /etc/*



Ouch!

_________________
----

Ed/Bones.


Top
   
 Post subject:
PostPosted: Tue Mar 14, 2006 11:36 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
NecroBones wrote:
cmantito wrote:
5 minutes ago:
Code:
root@redbaron:~# rm /etc/*



Ouch!

And if you *really* want to get yourself into trouble:
Code:
root@localhost:~# rm -rf /


Top
   
 Post subject:
PostPosted: Tue Mar 14, 2006 5:02 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 12:35 am
Posts: 118
Website: http://www.necrobones.com/
Location: Sterling, VA
One of the worst I've done (not on linode though), was something like:

Code:
chown -R bones:users .*


as root, intending to alter the ownership of my "dot files" and hidden directories, not realizing it would climb up through the entire file system, changing ownerships (and permissions in some cases) all over the system. :)

_________________
----

Ed/Bones.


Top
   
 Post subject:
PostPosted: Wed Mar 15, 2006 6:14 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
NecroBones wrote:
Code:
chown -R bones:users .*


as root, intending to alter the ownership of my "dot files" and hidden directories, not realizing it would climb up through the entire file system, changing ownerships (and permissions in some cases) all over the system. :)


I know rm has protection from doing that at least, I've done the same with other recursive commands.


Top
   
 Post subject:
PostPosted: Tue Dec 12, 2006 1:59 am 
Offline
Junior Member
User avatar

Joined: Sun May 01, 2005 1:23 am
Posts: 31
Website: http://www.taupehat.com
Yahoo Messenger: pleasesendspamtothisaddess
Time to revisit this thread.

Turns out vim has a nifty trick where you can do like the following:
Code:
:wq[stuff]
and it'll write out whatever you've got as "[stuff]" instead of whatever the original file was. Note: this only works for certain filenames, the choices of which can be incredibly absurd as you will soon see.

Well, I was working on a file marked read-only, and went to write it out, which to those who don't know, is done with the good old "do it anyhow" wildcard also known as an exclamation point (!) or "bang." Only I missed the bang and hit kablooey instead(Note: CWD was /root/):
Quote:
:wq~

Vim dutifully told me
Code:
"~" 235L, 7843C written


Uh-oh. Well, this was fun, and here I was straight out of the gym in the morning without so much as a cup of coffee to prop up my endorphin-spun brain cells.

Clickety-linkety to behold the horror that almost happened next:
http://www.taupehat.com/images/misc/pathexpansion.jpg

After I studied that one, I literally smacked my forehead, having come within a fraction of pulling the classic unix blunder. Oh well ;) And yes, I did get rid of the silly file.


Top
   
 Post subject:
PostPosted: Sat May 05, 2007 1:27 am 
Offline
Senior Member

Joined: Wed Apr 11, 2007 8:23 pm
Posts: 76
I have rdiffed backwards and removed /bin and some of /dev before the server somewhat crashed.

Had to boot another distro and copy /bin and /dev back over, booted it up and worked perfectly.

could never have done it without help from #linode =)

Thanks,
Smark


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group