If you want to overwrite the file, use the "-i" (in-place) option.
Then, your expression only catches the first occurence of the search term in every line.
For catching all of them, use "s///g".
So this would be: (untested)
sed -i -e 's/linux-2.4/newlinux-2.4/g' file1
|