How do you delete tmp files if file system is full becoz of
/tmp dir ?

Answer Posted / deepak kumar

ls -l /tmp |grep *.tmp | awk {'print $9'} | xargs -i rm {}

or
find /tmp -name "*.tmp" -exec rm {}/?

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a user access a dos-format disk in solaris?

741


What is the login shell?

840


What is difference between swap -l & swap -s?

728


How can a user increase the number of pseudo-ttys?

769


Explain the difference between swap -l & swap -s?

761


How to view shared memory statistics?

728


Tell me how to mount the floppy & cd-rom?

698


What do you understand by mail aliases?

728


How can abiword be compiled for solaris using gcc?

749


What kind of issues you get?

1844


Explain the vmstat output?

753


How can the user in solaris check the status of processes?

761


What are nis daemons?

744


Tell me how to discover global zone name from local zone?

739


How can the output be redirected to some other action process in place showing it in the screen?

778