how to use linux commands in JavaScript?
I need to use some of the Linux commands in the JavaScript. Is it possible to do 开发者_开发问答that?? If yes what's the syntax for the same??
In Node.js you can spawn child processes (amongst others: run a linux command) with a child_process.
It's not possible. You can't access the user's (file)system with Javascript because that would be a pretty huge security leak.
精彩评论