gpt4 book ai didi

linux - 我正在尝试在 LINUX 上运行 hitory 命令。但是当我运行 !# 时,它返回未找到错误

转载 作者:太空宇宙 更新时间:2023-11-04 09:40:01 25 4
gpt4 key购买 nike

我是 Linux 新手。我正在通过 putty 使用 LINUX当我运行 history 命令时,我看到了上次运行的命令,但是当我尝试运行它们时,我收到了这个错误...

266     hist
267 h
268 ls -la
269 ls -lastr
270 vi .sh_history
271 vi .
272 h
QTH614:samgw:/prod/user/home/qth614>!266
-ksh: !266: not found [No such file or directory]
/prod/user/home/614>

这可能是我的腻子配置的原因......我不确定。

谢谢,山姆。

最佳答案

这种语法是我在 bash 中习惯使用的语法,但它看起来像 ksh,您可能想试试这个:

r 266

引用:http://unixhelp.ed.ac.uk/shell/ksh_hist3.1.html

关于linux - 我正在尝试在 LINUX 上运行 hitory 命令。但是当我运行 !# 时,它返回未找到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22516114/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com