Hi, everybody!
I have a big problem. I don't understand Unix, but I work as a system administrator, and sometimes I make some data exports and I have to delete old .dmp files, but today I had a mistake, I wrote rm * 909*
This is a part of my folder contents in unix before deleting
drwxrwxr-x 2 oracle dba 1024 Sep 15 10:49 .
drwxr-xrwx 6 oracle dba 1024 Dec 6 2010 ..
-rw-r--r-- 1 oracle dba 1005568000 Sep 12 08:38 XX_20110909.dmp
-rw-r--r-- 1 oracle dba 81120256 Sep 12 08:42 YY_20110909.dmp
-rw-r--r-- 1 oracle dba 580651008 Sep 14 08:32 XX_20110914.dmp
-rw-r--r-- 1 oracle dba 580096000 Sep 15 10:51 YY_20110915.dmp
-rw------- 1 oracle dba 522096 Nov 5 2010 core
oracle@ZZ-dbux:/oracle/exp/myfolder$ rm * 909*
rm: 909* non-existent

Then I wrote ll command and I found only these rows
drwxrwxr-x 2 oracle dba 1024 Sep 15 10:49 .
drwxr-xrwx 6 oracle dba 1024 Dec 6 2010 ..

I have no idea what is the role of the last row. What do it?
I read this article
http://webdocs.caspur.it/ibm/db2/8.1/doc/htmlcd/en_US/index.htm?openup=admin/c0008945.htm
but I didn't understand what problems might appear?
Thank you!

notice blank between * and 909*

rm * 909* mean delete all and anithing started with 909

rm *909* mean delete all with 909 in the name

Hi, everybody!
I have a big problem. I don't understand Unix, but I work as a system administrator, and sometimes I make some data exports and I have to delete old .dmp files, but today I had a mistake, I wrote rm * 909*
This is a part of my folder contents in unix before deleting
drwxrwxr-x 2 oracle dba 1024 Sep 15 10:49 .
drwxr-xrwx 6 oracle dba 1024 Dec 6 2010 ..
-rw-r--r-- 1 oracle dba 1005568000 Sep 12 08:38 XX_20110909.dmp
-rw-r--r-- 1 oracle dba 81120256 Sep 12 08:42 YY_20110909.dmp
-rw-r--r-- 1 oracle dba 580651008 Sep 14 08:32 XX_20110914.dmp
-rw-r--r-- 1 oracle dba 580096000 Sep 15 10:51 YY_20110915.dmp
-rw------- 1 oracle dba 522096 Nov 5 2010 core
oracle@ZZ-dbux:/oracle/exp/myfolder$ rm * 909*
rm: 909* non-existent

Then I wrote ll command and I found only these rows
drwxrwxr-x 2 oracle dba 1024 Sep 15 10:49 .
drwxr-xrwx 6 oracle dba 1024 Dec 6 2010 ..

I have no idea what is the role of the last row. This row
-rw------- 1 oracle dba 522096 Nov 5 2010 core
What do it?
I read this article
http://webdocs.caspur.it/ibm/db2/8.1/doc/htmlcd/en_US/index.htm?openup=admin/c0008945.htm
but I didn't understand what problems might appear?
Thank you!

I would like to know what will happen after deleting the green row and what problems might appear

Not knowing much about your system, it's nearly impossible for us to tell what effect deleting that file might have.

That being said, if that file is (was?) indeed a *core dump*, then losing it is probably not a problem. Core files are full of diagnostic information written to disk as a program crashes. So it's *probably* ok.

What you've done here is a classic mistake... Unix/Linux systems do whatever you ask them to without question, up to and including completely destroying themselves. (I'll never forget my fist "rm -rf /*" ...it was a typo in a variable name :( )

I would like to know what will happen after deleting the green row and what problems might appear

That file will cease to exist. Anything that depends on that file will no longer be able to satisfy dependencies.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.