Solved

How to remove -TRASH under /tmp directory?

Posted on 2008-10-28
1
1,406 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

825 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