Solved

How to remove -TRASH under /tmp directory?

Posted on 2008-10-28
1
1,390 Views
Last Modified: 2013-11-17
Hi,

I can't use the command du -sk * for /tmp directory. i found this is due to the appearance of directory -TRASH under /tmp. How to remove this -TRASH?

/tmp> ls -l |more
total 66328
drwx------   2 root     system        23040 Dec 29 2005  -TRASH
-rw-r--r--   1 root     system          727 Apr 14 2005  .ctinst.log
-rw-------   1 root     system            0 Aug 31 2004  .ipHarvest.log
-rw-------   1 root     system          135 Jun 22 2005  .list_filesets.out

Thx in advance.

Best Regards,
Terrence
0
Comment
Question by:terrencetan
1 Comment
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
ID: 22819688
try

cd /tmp

rm -r  --  -TRASH

OR

rm -r /tmp/-TRASH
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now