전체 = the whole (of)      

그는 건물 전체에 페인트칠을 했다 = He painted the whole building.
소문이 회사 전체에 퍼졌다 = The rumor spread all over the company.
산 정상에 오르자 도시 전체가 내려다보였다 = When I reached the top of the mountain, I could see the entire city below.

전부 = all 

전부 합쳐서 얼마예요? = What do you charge for them all together?
그의 말은 전부 거짓말이다 = Everything he says is a lie.
내게는 그녀가 전부다 = She is everything to me.
내가 할 수 있는 일은 전부 해 보았다 = I have tried everything that I’m capable of.

Before

image

전 – before, front, earlier
전에 – before (noun) 

수업 전에 – before class
일요일 전에 – before Sunday
1시 전에 – before 1 o’clock

~전에 – before doing

가기 전에 – before going
사기 전에 – before buying
먹기 전에 – before eating
집에 가기 전에 – before going home
공부하기 전에 – before studying

여기 오기 전에 뭐 했어요? – what did you do before you came here?
집에 가기 전에 술 마실 거예요 – I’m going to drink before I go home.
들어오기 건에 노크 하세요 – knock before you come in
사기 전에 잘 생각하세요 – think well before you buy it
도망가기 전에 잡으세요 – catch him before he runs away.