A common rule of thumb is to keep enough to cover several months of your regular expenses. The right amount depends on your income, family and commitments.
It is kept in easily accessible places like a savings account, not in investments that might be down when you need the money.
Related terms: Liquidity, Fixed deposit, Net worth.