2

I did man open it shows the proper function with the arguments and details.
But when I do man write it shows the write command and not the definition
for the C function which is used like write(fd, a, length)
Where do I access the Docs for this C function?

pensee
  • 47
  • 4
  • 6
    Try `man 2 write`. – Ian Abbott Dec 08 '20 at 10:09
  • I always get happy when people post questions that shows that they want to learn how to solve things themselves. – klutt Dec 08 '20 at 10:11
  • Have a look here: https://linux.die.net/man/2/write or here https://linux.die.net/man/3/write – Roberto Caboni Dec 08 '20 at 10:13
  • The numbers (2,3) are sections, see `man man` for their explanation. –  Dec 08 '20 at 10:15
  • man 2 write does it!! Can we do similar thing with `tldr` also ? – pensee Dec 08 '20 at 10:19
  • I sometimes use `man -a ` and iterate over all pages if I don't know which one I want. You can also do `man 'write(2)'`. `Can we do similar thing with tldr also ?` What is "tldr"? There's `apropos write` – KamilCuk Dec 08 '20 at 10:29
  • https://tldr.sh/ This I recently came to know is something called more readable or friendly man pages. Do you guys suggest any better alternative to man pages when you want to write C code stuff ? `man -a` simple but really cool command – pensee Dec 08 '20 at 11:12
  • Why should we use something else than "man", it is just fine? Anyway, you might like to try `apropos write`... – the busybee Dec 08 '20 at 11:47
  • `man 2 write` will give you the section 2 (system calls) manual page of write. – Luis Colorado Dec 10 '20 at 09:35

0 Answers0