6
$ set frog pets
$ echo $1_$2
frog_pets

man set is not bringing me anything =( neither is which set or whereis set

5

set is a bash shell command

If you type man bash and then search for /abef should move to the section that describes set and the various available.

To confirm that you are using a shell built command you can run:

type command

if the message command is a shell builtin is the output, then you can find the help for these types of commands via

help [shell_command]

for example:

help set

As an added bonus you can pipe the output into either more or pager to enable page-by-page scrolling i.e.

help | more

or

help | pager

(with thanks @psusi & @eljunior & @andrewsomething)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.