Display output of bash command line on html page using javascript
<p>I have the bash script written so that my customized commands output some data in text format. I would like to have a button on a webpage that when clicked, takes the user to another page that displays the output of the command. For a simple example, let's say the user clicks the 'pwd' button. I would like the next page to just display /usr/somedirectory or something similar.</p>

<p>I'm new to JavaScript and HTML but have been playing around with some HTTP GET and POST methods along with researching a bit on websockets. What would be the best way to go about this?</p>