maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   stupid mistake while ex rm -rf (https://talk.maemo.org/showthread.php?t=81412)

Megaltariak 2012-01-08 00:39

Re: stupid mistake while ex rm -rf
 
No, * doesn't expand to files/dir beginning with .
* : everything that is not hidden
.* : everything that is hidden
* .* : everything

eight 2012-01-08 00:45

Re: stupid mistake while ex rm -rf
 
You are right, forget my last posting, saturday night, maybe I had one beer to much. :)
Nothing deleted in this case, luckily.

Day_Dreamer 2012-01-09 08:31

Re: stupid mistake while ex rm -rf
 
Quote:

Originally Posted by eight (Post 1147276)
Nokia PC-Suite will only backup contacts, calendar and other PIM data. It will not help if you delete or change system files. For a systembackup of all files you will need backupmenu which saves and restores whole partitions to image files.

If you don't know backupmenu you should better not use such risky commands in the terminal unless you know exactly what it does.
As said, if you forgot to type the dot, or if your working directory had been /, not one file would be left. Where did you get that tip?

I got the tip from a dutch website that had a detailed how to to install gingerbread on the sd card. Thanx for the link I will start reading there and create a backup.

@ everyone, thanx for the help, glad I didn't delete anything important.

reinob 2012-01-09 11:47

Re: stupid mistake while ex rm -rf
 
Quote:

Originally Posted by Megaltariak (Post 1147290)
.* : everything that is hidden

Careful with that, combined with -r!

if you do (from anywhere) rm -r .* it will wipe out everything, as .* will include ".." which is the parent directory (i.e. / if run from /root)

rpjitendra 2012-11-11 07:46

Re: stupid mistake while ex rm -rf
 
i want to delete /and to free up rootfs.
i think i have installed gingerbread in /and so rootfs is full.
root
rm -f /and
is it okay?

rpjitendra 2012-11-11 09:06

Re: stupid mistake while ex rm -rf
 
Quote:

Originally Posted by rpjitendra (Post 1292890)
i want to delete /and to free up rootfs.
i think i have installed gingerbread in /and so rootfs is full.
root
rm -f /and
is it okay?

deleted /and 48mb rootfs free
nitdroid deleted
any way to reinstall nitdroid


All times are GMT. The time now is 10:30.

vBulletin® Version 3.8.8