Solved

How to remove -TRASH under /tmp directory?

Posted on 2008-10-28
1
1,418 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 250 total points
ID: 22819688
try

cd /tmp

rm -r  --  -TRASH

OR

rm -r /tmp/-TRASH
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix How to Bulk Remove Multiple Directories from FileSystem 10 82
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 116
lunix and unix command 21 120
check the file dates in unix 14 30
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…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

726 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