Re: GNOME hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Eventually, that even didn't work and I was advised to do something
> which turned out to be disastrous so NEVER EVER issue the following from
> a root shell
>
> rm -rf $Home/*

I cannot say enough bad things about whoever suggested this to you (If they 
actually did, which I really hope they didn't)

I guess the INTENTION was to delete everything from the home area of some user 
account .  However,

1. The first problem is if you are logged in as root $HOME (yes, all upper 
case, see point 2 below) $HOME evaluates to /root. So all you end up doing is 
deleting all your root account config/account files.

2. The environment variable $Home does not exist ! It is $HOME. So if you had 
a clue what you where doing, and had tried

 > echo rm -rf $Home/*

first you would have discovered

#[root@localhost ~]# echo rm -rf $Home/*
rm -rf /bin /boot /data /data2 /dev /etc /home /lhcb /lib /lost+found /media /misc /mnt /net /proc /root /sbin /selinux /srv /sys /tmp /usr /var /winxp

i.e. as you discovered this command eats EVERYTHING...

Let this be a lesson.

Chris

p.s. I suggest ANY rm command you run as root should include the -i flag

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux