0

I'm trying to access the manual of using the command man (debian).

Using this code:

$out = shell_exec("man");
echo $out;

the output is:

What manual page do you want?

How can I select a page from php code?

1 Answer 1

2

man by itself doesn't do anything. You have to tell it which command you want to see the manual for. For example: man cd will show you the man page for the cd command.

For example try: echo "<pre>" . shell_exec("man cd");

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.