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




Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ole tange

The xargs solution is dangerous if names contain spaces. See
http://en.wikipedia.org/wiki/Xargs#The_separator_problem

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Solaris General Interview Questions

Suppose I have 20 gb free space in my file system but my inode size full. How will I increase or how will I fix this issue?

0 Answers  


Explain how to kill a process.

0 Answers  


They have user like aa with home dir /export/home/aa. They want to change home dir to /export/home/bb & username remains same. User files in /export/home/aa moved to bb? What do u do?

1 Answers   Satyam, Wipro,


Explain the difference between pid and ppid with example.

0 Answers  


how to add your own run control script in server?

0 Answers  






how many zones can be installed in server which has 4 processors?

1 Answers   Oracle,


solaris booting process.

4 Answers   Wipro, HCL, Satyam,


How to configure Veritas Kernel? Daemons in Veritas VM?

2 Answers   Satyam, Wipro,


what are the ILOM commands are used to troubleshooting sunv490 server on ILOM console mode?

1 Answers   CSC,


What is master map?

3 Answers   Satyam, Wipro,


what are the daemons running In NIS? how to do u create NIS users and update Maps?

5 Answers   Satyam, Wipro,


How can searches be refined?

0 Answers  






Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (8)
  • Solaris IPC Interview Questions Solaris IPC (16)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (2)
  • Solaris System Calls Interview Questions Solaris System Calls (24)
  • Solaris General Interview Questions Solaris General (158)
  • Solaris AllOther Interview Questions Solaris AllOther (297)