摘要: $ type cd 【显示cd命令的实现】 // cd is a shell buit in $ type -a pwd 【显示pwd命令的所有实现】 // pwd is a shell built in // pwd is /bin/pwd 阅读全文
posted @ 2021-12-30 11:31 箫笛 阅读(101) 评论(0) 推荐(0)
摘要: 1. 查看命令历史及写入文件 $ history 最近用过的命令列表 $ history -a 将命令历史记录写入.bash_history 文件 2. 执行命令历史中的命令 $ !! 执行上一次执行过的命令 $ !2 执行历史命令编号为2的命令 阅读全文
posted @ 2021-12-30 11:23 箫笛 阅读(484) 评论(0) 推荐(0)