Getting stuck behind a truck is unavoidable. But as the driver of your vehicle, applying safety driving means how close you are suppose to be behind the truck. Not only is it safer to leave a greater distance, you will be saving your car from flying rocks and other debris which, over time, damage the paint, damage your headlights and windshield. As a bonus, when following a badly maintained older truck, staying far means less black fumes get into the filter of your ventilation system .
Big trucks tends to cover view of the road ahead, so staying at a reasonable distance from the truck will give you a slight vantage view of traffic and obstacle ahead. Being at a distance will also give you a good timing on when to over take the truck. Especially on a single road.
NOTE: Do not over take a truck on a bend or on top of a hill, make sure you can see the road ahead clearly before overtaking so as to avoid on coming traffic.