While this answer may not be the most popular with any Italian readers, you can substitute spaghetti for linguine or vice versa for most purposes.
Since both pastas are very similar in shape and thickness the end result of the recipe won't be hugely affected. However, linguine is thicker and meatier than spaghetti, so it will hold the sauce better, but will give higher ratio of pasta to sauce with each forkful.