golang中os/exec包用法

chenbaoke ·
请问如何执行shell内嵌命令呢?如"history“命令? 用cmd.Command("history”)会报错: exec: "history": executable file not found in $PATH
#1
更多评论
exec.Commad(“history")...
#2