繁体   English   中英

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

[英]I'm trying to run hitory commands on LINUX.But when I run !#, it returns not found error

我是LINUX的新手。 我正在使用LINUX thru putty当我运行历史命令时,我看到上次运行命令,但是当我尝试运行它们时,我收到此错误...

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM