简体   繁体   English

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

[英]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.

相关问题 我正在做密码挑战 5。尝试在 kali linux 中运行此脚本时,第 5 行出现语法错误 - I'm doing the cryptopals challenge 5. I'm getting a syntax error in line 5 when trying to run this script in kali linux 当我尝试通过 python 脚本执行 shell 命令时出现错误“找不到模块” - I'm getting an error “module not found ” when I'm trying to execute shell commands through a python script 尝试在Linux系统上运行可执行文件时出错 - Error when trying to run an executable on a Linux system 尝试运行Linux跟踪工具包时找不到lttng命令 - lttng command not found when trying to run Linux Tracing Toolkit 如何运行Linux命令WHM VPS - How do I run linux commands WHM VPS 我可以在 Ubuntu 服务器上同时运行 lamp 和 linux 终端命令吗? - Can I run lamp and linux terminal commands simultaneously on Ubuntu server? 如何在 ARM Cortex M3 板上运行 linux? - How do I run linux on an ARM Cortex M3 board? 我如何从PyGTK运行linux命令? - how can i run linux commands from PyGTK? 我有几个Linux命令,我想在Windows机器上运行。 如何在Windows上从Python运行Linux命令 - I have a couple of Linux commands, which i want to run on windows machine. How to Run Linux commands from Python on Windows 尝试推送到Linux AWS服务器上的裸仓库时出现“权限不足...”错误 - I'm getting a 'insufficient permission…' error when trying to push to my bare repo on my linux AWS server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM