How do you delete tmp files if file system is full becoz of
/tmp dir ?
Answers were Sorted based on User's Feedback
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 |
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 |
what are the daemons running In NIS? how to do u create NIS users and update Maps?
What can be a reason for the solaris system slowing down? How can it be rectified?
How to change the default values ( home dir, shell, role, min, max, expire) get by user ?
How to solve the system hang issue. Found that the memory state is free, commands to check and solve the issue?
How to make ip address persistent across reboots?
What causes the rpc.ttdbserverd process to be cpu bound? How can it be rectified?
How can threads be created in a solaris environment? Write an example
Explain the difference between swap -l & swap -s?
how many zones can be installed in server which has 4 processors?
Explain the types of installations in solaris
What is the cmd used to print default values get by user? Useradd –D
what are all the procedures i have to follow while patching a machine which has root mirroring ( SVM ).