Solved

How to remove -TRASH under /tmp directory?

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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.

707 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