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

After adding LUNs disk is not showing in the format command. How to resolve that?

3 Answers   IBM,


Root mirroring in veritas?

2 Answers   Satyam, Wipro,


difference between ps -ef and prstat

2 Answers   IBM,


How to make ip address persistent across reboots?

1 Answers   Satyam, Wipro,


how to know kernel architecture of solaris ? isainfo -v ? or prtconf -v

4 Answers   Satyam, Wipro,






Solaris booting process, run leverls?

1 Answers   Satyam, Wipro, Galaxy,


Port no for telnet (23) , ssh(22)?

2 Answers   Satyam, Wipro,


Jumpstart?

2 Answers   Satyam, Wipro,


how to create passwords in nis?

3 Answers   TCS, DELL, IBM,


can we able to connect to OK prompt and serial port by using the putty and xmanager tools. if yes please describe me. thanks

1 Answers  


How to create null files in solaris ?

5 Answers   Satyam, Wipro,


Explain what is multi homed system?

0 Answers  






Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)