博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
替换命令 shell_替换Shell中的最后一个命令
阅读量:2516 次
发布时间:2019-05-11

本文共 1022 字,大约阅读时间需要 3 分钟。

替换命令 shell

Whether I fat-finger a command or my MacBook Pro keyboard's keys don't want to respond like they should, I'm frequently misspelling commands.  What's more frustrating is that many of these commands are long, taking making fixing theme time-consuming.

不管我是用手指指命令还是MacBook Pro键盘的键都不想像应该的那样响应,我经常在拼错命令。 更令人沮丧的是,其中许多命令都很长,这使得修复主题非常耗时。

Luckily a , providing me a quick command for fixing the misspelled command:

幸运的是, ,为我提供了一个快速命令来修复拼写错误的命令:

~ $ crul davidwalsh.name-bash: crul: command not found~ $ ^crul^curlcurl davidwalsh.name301 Moved Permanently

Moved Permanently

The document has moved here.


Apache Server at davidwalsh.name Port 80

The ^ command usage above returns fixes the spelling from the previous command, executes the command, and as a bonus, adds the correct command to history.

上面的^命令用法返回结果可修复前一个命令的拼写,执行该命令,并作为奖励将正确的命令添加到历史记录中。

Small tips like these and  make my command life experience so much better.  What's your favorite command line trick?

像这样的小技巧和使我的命令生活变得更好。 您最喜欢的命令行技巧是什么?

翻译自:

替换命令 shell

转载地址:http://nuvwd.baihongyu.com/

你可能感兴趣的文章
采访吴岳师兄有感 by 王宇飞
查看>>
LVS简略介绍
查看>>
hdu 1021 Fibonacci Again
查看>>
JVM架构_XmnXmsXmxXss有什么区别:转
查看>>
PHPExcel 使用心得
查看>>
洛谷 P3374 【模板】树状数组 1(单点加,区间和)
查看>>
verilog 代码编写小记
查看>>
PyQT的安装和配置
查看>>
从 docker 到 runC
查看>>
python基础学习笔记(十一)
查看>>
守护进程
查看>>
第十二周作业
查看>>
php数组
查看>>
Linux 防火墙
查看>>
android 自定义图片圆形进度条
查看>>
互联网金融P2P主业务场景自动化测试
查看>>
array_filter函数的应用
查看>>
梅西确定代言 中国首秀牵手Mate 8
查看>>
html,body
查看>>
一个Brushes笔画应用ios源码完整版
查看>>