0
点赞
收藏
分享

微信扫一扫

关于Linux开发环境使用alias的建议

作为一个软件开发人员,日常开发工作涉及面非常的广,很多时候,我们都需要借助网络搜索或历史笔记才能回想起来一些关键的知识点或Log关键字,这种时候,我们就需要一个可以快速找到自己的知识点,除了日常的检索之外,我这边建议大家将一些日常使用的指令、Log关键字、快捷键、工具使用说明用一个txt保存下来,之后通过help-xxx指令快速完成检索动作。


通过vi ~/.bashrc打开环境变量配置文件,设置一系列所需的别名,并完成相关txt的创建和内容填充即可。

#for get help info

alias help-cpu='cat ~/tools/help/1.cpu.txt '

alias help-gpu='cat ~/tools/help/2.gpu.txt '

alias help-ddr='cat ~/tools/help/3.ddr.txt '

alias help-io='cat ~/tools/help/4.io.txt '

alias help-mem='cat ~/tools/help/5.memory.txt '

alias help-lmk='cat ~/tools/help/6.lmk.txt '

alias help-vi=' cat ~/tools/help/8.vim.txt '

alias help-thermal='cat ~/tools/help/7.thermal.txt '

alias help-logcheck='cat ~/tools/help/50.logchecker.txt '

alias help-sysdump='cat ~/tools/help/101.sysdump.txt'

alias help-ne='cat ~/tools/help/102.nativecrash.txt '


举报

相关推荐

0 条评论