[英]I'm trying to run hitory commands on LINUX.But when I run !#, it returns not found error
I'm new to LINUX. 我是LINUX的新手。 I'm using LINUX thru putty When I run history command, I see last ran commands but when I'm trying to run them I'm getting this error...
我正在使用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>
This might be necause of my putty configuration...I'm not sure. 这可能是因为我的腻子配置...我不确定。
Thanks, Sam. 谢谢,山姆。
That syntax is something I'm used to with bash, but it looks like ksh you might want to try this: 这种语法是我习惯使用bash的东西,但它看起来像ksh你可能想尝试这个:
r 266
Reference: http://unixhelp.ed.ac.uk/shell/ksh_hist3.1.html 参考: http : //unixhelp.ed.ac.uk/shell/ksh_hist3.1.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.