Results 1 to 4 of 4

Thread: Source code for UNIX command

  1. #1

    Default Source code for UNIX command

    Hi Folk,
    I want to get the source code for some of the basic UNIX commands , e.g.
    tail,wc, etc.
    could you please send me the link to these source code( preferably in C language)

    Thanks
    Shariq

  2. #2

    Default Re: Source code for UNIX command

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Those two commands both come from the coreutils package. Google for
    coreutils source.

    To find which package other commands come from:

    rpm -qf /path/to/the/command

    Good luck.




    On 06/08/2010 02:26 AM, shariqnitt wrote:
    >
    > Hi Folk,
    > I want to get the source code for some of the basic UNIX commands ,
    > e.g.
    > tail,wc, etc.
    > could you please send me the link to these source code( preferably in C
    > language)
    >
    > Thanks
    > Shariq
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.12 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQIcBAEBAgAGBQJMDgJsAAoJEF+XTK08PnB5uRwP/3oR3hXC9KeGqKNBj+G/AGAz
    3VXsmhce/u3cOojBkG34azzTn8GdT5yeUu1pgD6T1T8vhLJjqVxOerl8/gtv9eGI
    LVrlFckDE83sK1T/sWMoA/ow6IoD9HfdyNU+DmCi+e2MF75VVV7mcHB4NSWa34CW
    Y9+NzXJf//wtUXOhIO4LR32rdplueqazMsclYRlmhyudaDbkba5KHBjoaFRx/ZK9
    6T5pk3xaAA01vWeV4Gz1jh2gLXwAuRDYTD8qcMj1gkWPWd7rBcEl9YNFt6o/+h35
    YvPe3xgG6RkkN0XYqx3wByrQdGEGA+Bpm9xTKhNI7wS8+C4ajCl982fiVunhdvt3
    4zBhhIRMPaJLY+SKirAKLFBNCUOIsq4Nf0dliiDvFCadjnA1MLsgCPZKsy0mzRIA
    29g2I+UuMcUolW+9AYCy2yHUrAkdYCoC4JbGZ253fC0r8C3jb5dTZgGUR3e/Pb/M
    KVclHIYtJWOadqdI/AZFBM7imJuGAiTEocv73HkTMiPqOTLAKoqkiP2HBD0ibMD6
    YIycBf9IjDX/yRzRH+AVKuWm/ohDe7bfpviHg7xbe6tts8GMLZ65JDhqDLQO0lTc
    fRNiCG4wGr46Ve4Of+vGkuo7eq6EDp5Tjc/WASWPffkqxTuZaEe0lhF4jHnNtpHq
    sM9+KaRM+xaW6W2Bxf1A
    =Kj1N
    -----END PGP SIGNATURE-----

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,662
    Blog Entries
    14

    Default Re: Source code for UNIX command

    We cannot decide in what language code is writen. This is how I would do it:

    - Start the software installer, untick all options, tick "provides", enter "tail" for searchphrase, you will see it's in "coreutils".
    - Here http://download.opensuse.org/source/....1-8.5.src.rpm is the source package for Factory. The Factory sources can be browsed Index of /source/factory
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4

    Default Re: Source code for UNIX command

    thanks to you all, According to your suggestion, I got the source code at location
    Index of /gnu/coreutils

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •