Where can I get the source code for Linux?
Linux 5.13
(latest as of July 2021) source code is located at https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.13.tar.xz. You can download it and extract it with those commands:
wget "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.13.tar.xz"
tar xvf linux-5.13.tar.xz
Also, Linux has official Github repository at torvalds/linux and official git server is located at https://git.kernel.org/, can be downloaded with git
:
git clone "https://github.com/torvalds/linux"
Besides C, you should learn GNU Makefile, a bit of Assembly language, and shell scripting. Github has a Languages
section with technologies used in project visualized:
As you can see, it's mostly C.
Where do you download Linux source code?
What I did was type
man factor
and went to the bottom and found 'GNU coreutils 6.10'. So I googled 'coreutils' and... found the site joschi just linked to.
Linux kernel source code download
Linux is also in Github:
https://github.com/torvalds/linux
How to download code of latest Linux kernel From development branch of Linux kernel maintainers?
Perhaps you need linux-next tree which is accessible from site of Linux kernel
So, you need to add a specific remote to existing clone of Linux tree (you may also consider how to manage many trees at one host)
git remote add next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update next
or run a new clone operation:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
How can I download source code from Linux Cross Reference library (generated by LXR engine)?
If you're still looking for an answer, here is a procedure based on a low documented feature of LXR.
- Display the file you are interested in
- Modify the URL in the browser address bar, adding at the end
?_raw=1
and go there (i.e. press return key) - The file is then displayed "as is", without any decoration (it is sent as
text/plain
) - You can now save the file from browser menu command File->Save as
NOTES:
- The
?_raw=1
argument can be used to have HTML files interpreted by your browser, i.e. displayed as HTML because they will be sent astext/html
. - The feature has been present in LXR for ages, though in versions older than 0.10 the argument is spelled
?raw=1
(without underscore). - I checked that
?raw=1
works with free-electrons though they use 0.3.1 which was released in 2003!
How to download this source code?
Its written on that Url itself: Click on Git Read-only
git://github.com/vimeo/vimeo-php-lib.git
Otherwise, if you don't intend to do further development, fork or contribute and just want to see the source code, you can also download as .ZIP
or .TAR.GZ
from the Downloads
button.
Related Topics
The Address Where Filename Has Been Loaded Is Missing [Gdb]
Getting Exit Status Code from 'Ftp' Command in Linux Shell
Shifting from Windows to *Nix Programming Platform
"Cd" Does Not Work in Shell Script
Extract List of File Names in a Zip Archive When 'Unzip -L'
Shell Script Working Fine Without Shebang Line? Why
How to Prevent Out of Memory (Oom) Freezes on Linux
Ssh Command Execution Hangs, Although Interactive Shell Functions Fine
How to Remove Warning About Storing Unencrypted Password After Committing File in Svn
Can't Run Uwsgi as Root, "Bind(): Permission Denied"
Can't Build 32Bit Wine on 64Bit Linux
Linux: Create Random Directory/File Hierarchy
Bash Script to Get All Ip Addresses
What Is This $Path in Linux and How to Modify It
Redirecting Man Page Output to File Results in Double Letters in Words