码迷,mamicode.com
首页 > 系统相关 > 详细

linux命令

时间:2020-05-01 18:59:09      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:direct   world   alias   linux命令   dir   edit   echo   unalias   结果   

创建新文件:touch test.sh

添加可执行权限:chmod +x test.sh

编辑文件:gedit test.sh

输出命令:echo "hello world"

正常退出:exit 0

给命令起别名:alias hello="echo ‘hello world‘"

撤销别名:unalias hello

取命令执行结果:echo "the current directory is $(pwd)" | echo "the current directory is `pwd`"

 

linux命令

标签:direct   world   alias   linux命令   dir   edit   echo   unalias   结果   

原文地址:https://www.cnblogs.com/abuduri/p/12814183.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!