Exploring the LLM Journey from Cognition to Expression with Linear Representations