For two graphs J and H, the generalized Turán number, denoted by ex(n, J, H), is maximum number of copies in an H-free graph order n. A linear forest F disjoint union paths. In this paper, we determine $$ex(n,S_r,F)$$ when n large enough, which generalizes results on $$ex(n, S_r, P_k)$$ (k+1) P_2)$$ . Finally, prose a problem related to F-free under shifting operations.