Open Tech Support
Open Tech Support Archives
Back to HomeCommunityReviewsGuidesDownloadsTech LinksMarketplaceContact Us
 »  SITE NAVIGATION
»  OTS Home
»  OTS Forums
»  OTS Archives

»  About our site
»  Search our site
»  Support our site

»  What is this site?
»  Who are we?
 
 
 »  ADVERTISMENT
 
  Pages: 1

I feel like a common end user. Linux funnines inside.

(Click here to view the original thread with full colors/images)


Posted by: BooRadley

I had my old linux install mounted on /mnt/test, and wanted to delete it and use the disk slice for storage. I forgot to type the . before ./bin/*.
Code:
eric on /dev/pts/0 [/home/eric]
$ cd /mnt/test

eric on /dev/pts/0 [/mnt/test] 
 $ ls 
 bin   chess  etc   lib         mnt  proc  sbin       tmp  var 
 boot  dev    home  lost+found  opt  root  slrnplace  usr  wine.gif 

eric on /dev/pts/0 [/mnt/test]
$ su
Password:

[(root on ttys0) /mnt/test]
# rm -rf /bin/*

[(root on ttys0) /mnt/test]
# ls
bash: ls: command not found 

D'oh. I coppied the old install's /bin over, so it at least works a little, but it's all hosed up now. Guess I'll be reinstalling sometime soon.

Does anyone know where I can take that class that teaches you to not do really incredibly stupid things? There really must be such a class, because I clearly need to take it.



Posted by: taco_fox

ok.



Posted by: 9:35

lmao man that reminds me of the time i tried to ping a guy but i wrote "pig" instead and msrun didn't know what to do



Posted by: Null Actor

Quote:

Originally posted by BooRadley
Does anyone know where I can take that class that teaches you to not do really incredibly stupid things? There really must be such a class, because I clearly need to take it.


I figure a class where the penalty for doing something stupid is death would work.



Posted by: Erekose

...yeah i think wenchy teaches it. there is a surprisingly low absenteeism rate, as well



Posted by: BooRadley

I rebuilt bash, but tcksh won't install without replacing some dependancies, plus it needs sh, which I don't feel like also downloading and compiling. I was using RH 8, and I've had a copy of RH 9 for a while now, anyway, so I guess it's all for the better. I'm just spending the day burning backups of stuff before I format & upgrade/install.

Ahh. . gotta remember the damn . from now on. dot dot dot dot dot.

DOT!



Posted by: TotalRecall

You can just use bin/, without the first slash and dot. It assumes you are referring to your current directory.



Posted by: BooRadley

Yeah, either one would'a worked. I'm not sure how I ended up doing /bin. Maybe I split the difference between bin and ./bin or something. Oddly, I felt a little safer using ./bin because it was more explicit.



 
Copyright 2000-2008 Open Tech Support.  All Rights Reserved.  Site Design and Development by Tolitz Rosel.