'sudo apt-get update && sudo apt-get install linux-headers-$(uname -r) build-essential'

Is the above command for putting in a fresh kernel? A lot of times I get in trouble with the
kernel. Number one problem being that I have to rebuild the kernel to put the real nvidia drivers in to get the latest support and functionality

I'm trying to learn some important linux commands and would just like to double check if this is the right terminology to start off with a fresh kernel...

Thanks,

John