bash的基本功能(别名、快捷键、历史命令)
2015-11-16 23:24
846 查看
别名
别名命令 aliasalias 查看所有别名
alias xx=” 添加别名(修改) //这种方法只是临时的,重启则消失
快捷键
ctrl+c 强制终止 ctrl+l(=clear) 清屏 ctrl+u 删除整行 ctrl+a 快速到行首 ctrl+e快速到行尾 ctrl+r在历史记录中查找
历史命令
history [选项] [历史命令保存文件] 选项: -c清空历史命令 -w 把缓存中的历史命令写入历史命令缓存文件~/.bash_history
1. 历史命令默认保留1000条,可在/etc/profile中修改
相关文章推荐
- linuxShell之一 文件读取 循环与分支
- 单机运行spark-shell出现ERROR Remoting: Remoting error: [Startup failed]
- bash: ulimit: open files: cannot modify limit: Operation not permitted
- 修改linux shell当前路径长度
- Linux基础-Shell基本命令和Vim介绍
- linux下ssh远程连接工具SecureCRT和xshell编码设置
- linux下ssh远程连接工具SecureCRT和xshell编码设置
- shell脚本的几个参数
- bash shell基础特性之三(数组)
- Shell 处理文件名中包含空格的文件
- linux执行shell报错:...^M: bad interpreter: 没有那个文件或目录
- Android adb shell删除文件和文件夹的操作
- SharePoint PowerShell命令系列 (15) Get-SPFarm
- Shell脚本之有效订购关系和无效订购关系
- Xshell连接不上Ubuntu解决方式
- 使用crontab定时执行shell脚本
- linux 启动或停止jar shell脚本
- Shell脚本命令汇总中
- shell脚本sysbench-while语句和awk
- shell 脚本学习2