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

How to stop if Solaris system it rebooting continually. What is the steps to come normal position.

8 Answers  


how to use the command "top" in solaris 10

3 Answers   IBM,


What is different between crontab and at command?

1 Answers  


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

3 Answers  


How will you take ufsdump and ufsrestore in a sing command line?

2 Answers  


How do you check the run level

2 Answers  


How will you ad new aliases name

1 Answers  


If the boot block is failed then how can you recover in VxVm?

1 Answers   Thomson Reuters,


How can we check the status of CPU at firmware

2 Answers   ITC Infotech,


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

2 Answers  


usage of temp directory should be restricted to 1 gb if total temp directory size is 5 gb?

3 Answers   Wipro,


how to see particular job whether completed or not?

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