Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: the 7 deadly linux commands

  1. #11
    Join Date
    Jul 2002
    Posts
    1,395
    Rep Power
    0

    Default

    Distros should not be still using hda. What? They still using the old 'ide' kernel options instead of the new libata/pata? No compatibility is needed. Hope it's just udev creating a softlink to sda or some other libata device.

  2. #12
    Join Date
    Oct 2009
    Posts
    785
    Rep Power
    0

    Default

    I accidentally did an rm -rf on /etc on a production box a few weeks ago. Someone accidentally copied /etc into another location and I was trying to clean it up... That box had to to be rebuilt. Now whenever there is an issue, the sysadmins always tell me not to delete /etc because that wont fix it.

    We only work from the console, GUIs are for n00bs not to mention I find it much slower

  3. #13
    Join Date
    Sep 2003
    Posts
    2,849
    Rep Power
    0

    Default

    Quote Originally Posted by techie2000 View Post
    I accidentally did an rm -rf on /etc on a production box a few weeks ago. Someone accidentally copied /etc into another location and I was trying to clean it up... That box had to to be rebuilt. Now whenever there is an issue, the sysadmins always tell me not to delete /etc because that wont fix it.

    We only work from the console, GUIs are for n00bs not to mention I find it much slower
    gui's are for n00bs yet still you rm -rf /etc on a production box
    starry heavens above and the moral law within
    Open source!
    dmitridawkins.com

  4. #14
    Join Date
    Jul 2002
    Posts
    1,395
    Rep Power
    0

    Default

    Quote Originally Posted by techie2000 View Post
    I accidentally did an rm -rf on /etc on a production box a few weeks ago. Someone accidentally copied /etc into another location and I was trying to clean it up... That box had to to be rebuilt. Now whenever there is an issue, the sysadmins always tell me not to delete /etc because that wont fix it.

    We only work from the console, GUIs are for n00bs not to mention I find it much slower
    Try 1 of these 3 next time:
    1. Code:
      rm -rI [files|directories]
    2. Code:
      echo rm -rf [files|directories]
    The second shows what the command looks like: not what is done. There is no simulation for rm. There were some old scripts with /bin/true though. When you run commands like that it should "fake it".

    Addendum
    Safe rm
    Last edited by carey; Jul 22, 2010 at 11:53 AM.

  5. #15
    Join Date
    Jun 2010
    Posts
    1,332
    Rep Power
    0

    Default

    LOL just think of some linux newbie in a chat room asking for help and gets one of these commands instead.

  6. #16
    Join Date
    Jul 2004
    Posts
    2,250
    Rep Power
    0

    Default

    Quote Originally Posted by techie2000 View Post
    I accidentally did an rm -rf on /etc on a production box a few weeks ago. Someone accidentally copied /etc into another location and I was trying to clean it up... That box had to to be rebuilt.
    Clean up???? Techie that look like a newbie mistake my yute.
    The price of anything is the amount of life you exchange for it.
    Henry David Thoreau

  7. #17
    Join Date
    Sep 2002
    Posts
    3,270
    Rep Power
    0

    Default

    Quote Originally Posted by carey View Post
    Distros should not be still using hda. What? They still using the old 'ide' kernel options instead of the new libata/pata? No compatibility is needed. Hope it's just udev creating a softlink to sda or some other libata device.
    Yes but that new distro has to be installed first to use the new kernel options.

    Until then, there are many old systems up and running that have olden hda setups.

    I still ran SuSE 9.0 on one of my old boxes until recently

    Some people even inherited old laptops with old distros installed on them just to learn about command line unix environments.

    My sister ran Ubuntu 8.04..

    It all varies.
    Those who do not understand UNIX are doomed to reinvent it poorly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •