You can use top and free while it's running. If you want to know how much memory a particular distribution of linux will use, it's tougher unless you know what you are and aren't going to be running. You can also affect the size of the kernel and the memory it uses by what you compile in.