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

environment? Is it heterogeneous (mix of linux, solaris,other UNIX)?

1748


How can a user login to solaris?

565


Explain the run levels that are used in solaris10?

528


How can a user boot in solaris as root if the password is non functional?

547


How can threads be created in a solaris environment?

557






Explain how to kill a process.

583


Explain custom jumpstart procedure?

2493


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

564


Tell me how many types of file system?

650


Tell me how to solve the system hung issue. Found that the memory state is free, commands to check and solve the issue?

530


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

551


In solaris 10 root Disk is 98% full what steps to be taken?

1663


How can a user increase the number of pseudo-ttys? what is their use?

540


How do you break the root password?

580


Tell me how to set the path for core file?

547