Hi All,
Q. I have one log file that log file contains application
message but the application message in log file not append
any date value. so after 1 to 2 date that file is big size ,
I want to delete contents only that was appended before 4
days ago from that single file and rest of the file contents
would be remains same.

Answers were Sorted based on User's Feedback



Hi All, Q. I have one log file that log file contains application message but the application mess..

Answer / srinivas

there are two ways to find files
1)find /var/adm/log -atime -4
2)tail -f n 20 /var/adm/log

Is This Answer Correct ?    0 Yes 0 No

Hi All, Q. I have one log file that log file contains application message but the application mess..

Answer / nagireddy

Using Logadm command. For more information see man page

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Solaris AllOther Interview Questions

what is the main difference between windows , unix ,linux, operating syatems? And why the companies in the industry prefer to use solaris os ? why may be the reason?

1 Answers  


Difference between secure copy and remote copy

1 Answers  


what is the disadvantage of 'tar' command?

3 Answers   IBM,


explain Jumpstat configuration..?

2 Answers   Accenture,


How can you check that a particular volume is mirrored?

5 Answers   CGI,






What is the procedure to do kernel patching?

4 Answers   IBM,


In solaris we have 2 directories for commands. what are they..? is there any difference b/w those..?

3 Answers  


Are kernel parameters tunable during runtime?

2 Answers  


What is the zone in DNS?

0 Answers  


difference b/w solais 8 and 9...?

1 Answers  


what r the daily responsibilities of u as a system administrator

10 Answers   ADP, IBM, Infosys, Wipro,


You can ping servers on the subnet your workstation is on, but not other subnets. Why?

2 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)