| View previous topic :: View next topic |
| Author |
Message |
bobthebob1234 LXF regular

Joined: Thu Jan 03, 2008 9:38 pm Posts: 1360 Location: A hole in a field
|
Posted: Tue Aug 10, 2010 2:13 pm Post subject: Quick ways of killing a server |
|
|
Just killed a server. Oops
(Don't try this a home)
Well that was a bit silly of me.
Missed a .
Any others that people have done? _________________ For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Tue Aug 10, 2010 2:41 pm Post subject: |
|
|
If you'd used * instead of ./* you couldn't have accidentally type /*.
Anyway that's not dead, just rather ill, unless it's a remote server and you rebooted before realising what you'd done
As far as your question is concerned, I take the Fifth  _________________ "Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein) |
|
| Back to top |
|
 |
bobthebob1234 LXF regular

Joined: Thu Jan 03, 2008 9:38 pm Posts: 1360 Location: A hole in a field
|
Posted: Tue Aug 10, 2010 4:04 pm Post subject: |
|
|
well it wasn't a remote server but when i logged in locall it seemed very ill so i rebooted then it was very very ill.
reinstalled in the end cos i had only just installed it. all working now (appart from the fact i just locked myself out from moodle...)
for future reference though how does one fix the it when it is ill? _________________ For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2359
|
Posted: Tue Aug 10, 2010 5:24 pm Post subject: |
|
|
Add penicilline
(sorry, couldn't let this one pass by )
 |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Tue Aug 10, 2010 6:30 pm Post subject: |
|
|
| Code: | cd ..
mv anythingthat shouldbein the root / |
There's only a limited number of directories in / so it's not hard to identify what you should move. _________________ "Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein) |
|
| Back to top |
|
 |
ajgreeny LXF regular
Joined: Wed May 10, 2006 9:18 pm Posts: 413 Location: Oxfordshire.
|
Posted: Tue Aug 10, 2010 6:34 pm Post subject: |
|
|
It's always worth adding an and either in ~/.bashrc or ~/.bash_aliases.
It will not completely stop things like that happening, but at least gives you one more chance to look at the command. _________________ Xubuntu 12.04 user, and loving it! |
|
| Back to top |
|
 |
MartyBartfast LXF regular

Joined: Mon Aug 22, 2005 8:25 am Posts: 785 Location: Hants, UK
|
Posted: Tue Aug 10, 2010 7:07 pm Post subject: |
|
|
I once intended to
but was a little puzzled to see the error
| Code: | | rm: cannot remove `foo': No such file or directory |
and then realised my typo, I'd actually done
I did have a backup though
 _________________ I have been touched by his noodly appendage. |
|
| Back to top |
|
 |
Nickless-Wirth
Joined: Sun Nov 28, 2010 8:31 pm Posts: 4 Location: planet earth
|
Posted: Mon Nov 29, 2010 12:11 am Post subject: |
|
|
I generally do these as "ls <whatever>" first, then arrow-up, edit, and away the root goes...
Not so obviously, I tend to have time to think of such problems - someone who is frantically trying to get something into working order, is generally not so lucky. _________________ Member of the Institute of Market Dialysis |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|