使用history命令查看Linux命令历史,按Ctrl+R搜索,通过编号执行历史命令,用history -c清除记录,并通过HISTSIZE等环境变量自定义行为。To view command history in Linux, use the `history` command. You can search with `
Ctrl+R`, execute past commands by number, or clear history with `history -c`. Customize behavior via environment variables like `HISTSIZE`.