?
Solved

How to remove -TRASH under /tmp directory?

Posted on 2008-10-28
1
Medium Priority
?
1,452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
omarfarid earned 1000 total points
ID: 22819688
try

cd /tmp

rm -r  --  -TRASH

OR

rm -r /tmp/-TRASH
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

764 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