Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How would you truncate a log file that is growing too large
if you don't have space to compress it or to move it
somewhere else? How would you do it?

Answers were Sorted based on User's Feedback



How would you truncate a log file that is growing too large if you don't have space to compre..

Answer / bipin bapurao sautadekar

more two commands to truncate the file.

# cat /dev/null > filename
# cat > filename and then press ctrl+c

Is This Answer Correct ?    9 Yes 0 No

How would you truncate a log file that is growing too large if you don't have space to compre..

Answer / syed

Why not you try by using below command

> <file name>

Is This Answer Correct ?    10 Yes 2 No

How would you truncate a log file that is growing too large if you don't have space to compre..

Answer / chris lowder

cp /dev/null <File Name>

Is This Answer Correct ?    6 Yes 3 No

Post New Answer

More Solaris Commands Interview Questions

If telnet not working, what are the thing to be checked

3 Answers  


How to configure root mirroring in veritas volume manager

5 Answers   L&T,


Syntex to execute a ufsdump

3 Answers  


If plex is failed then how can you recover it?

1 Answers   EDS,


How will you find the number of hard disk

4 Answers  


If you have got a LUN, How to configure it, how to allocate LUN in linux/ solaris. What are the steps ?

2 Answers   Wipro,


If you have multiple ethernet interfaces, how do you keep it from routing between them?

3 Answers  


As a user how he can change is passwd with root privilege.

2 Answers  


How to remove the root mirror

2 Answers  


Difference between LDOM and Domain?

2 Answers   IBM,


What are the daemons in nis server.

2 Answers  


How to create swap file

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