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

Root mirroring in SVM, in Veritas ?

4 Answers   HP, IBM, Satyam, Wipro,


in a global zone we are created a zone. how can we know whether it is a sparse root model or whole root model.

3 Answers  


how to create passwords in nis?

3 Answers   DELL, IBM, TCS,


how to clear inode usage?

1 Answers  


how would we know a file system exists on a slice when it is unmounted from its mount point. please anyone help me out.

6 Answers  






How can threads be created in a solaris environment?

0 Answers  


what is multihomed system?

2 Answers   Satyam, Wipro,


Hardware and software revision information ? showrev

3 Answers   Satyam, Wipro,


in solaris 10 nfs4 version is using ..in that any new daemons are available or not

2 Answers  


How to check OBP version?

6 Answers   Satyam, Wipro,


What are the ways in which replication agreements between directory structures be arranged?

0 Answers  


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

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)