unix command line execute with . (dot) vs. without

后端 未结 5 564
失恋的感觉
失恋的感觉 2020-12-02 20:57

At a unix command line, what\'s the difference between executing a program by simply typing it\'s name, vs. executing a program by typing a . (dot) followed by the program n

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 21:45

    The first executes the command. The second is shorthand for including a shell script inside another.

提交回复
热议问题