Linux 中执行命令

第一步:

  在txt文件(文件名为cmd_file)中写入代码:echo this is content!

第二步:

  授权chmod 555 cmd_file

第三步:

  运行 ./cmd_file

--------------------------------------------------------------------------------------------------------------------------------

./ 表示当前目录,cmd_file是在当前目录下建立的。

posted on 2014-11-16 22:12  蒋乐兴的技术随笔  阅读(309)  评论(0编辑  收藏  举报

导航