Generalized compactness inlinear spaces and its applications