Greenway is an important linear public space that meets the diverse needs of the public. With the increasing popularity of greenway construction, the study of different greenway usage behavior in different socio-economic areas is of great value to the detailed design and construction of greenway in the future. Using the theory of environment-behavior studies (EBS), this study selected representative urban greenways and suburban greenways in Beijing, China, and conducted a questionnaire survey. Descriptive statistics and the chi-squared test are used to quantitatively analyze and summarize the behavior of greenway users. It is found that user gender, educational level, and residence (i.e., permanent resident or visitor), as well as season of use, are highly similar for urban greenways and suburban greenways in Beijing. However, due to a close relationship with urban location, modified by temporal, spatial, and personal factors, different behavioral characteristics are evident as follows: (1) Urban greenways are most closely related to daily life, work and education of urban residents, with short travel distances, short single use time, high frequency of use, high social and cultural value, wide distribution of age groups and wide distribution of time periods of use. (2) Suburban greenways are an important choice for residents’ outdoor activities on weekends and holidays. It is mainly used for ecological protection and sightseeing, supplemented by sports and fitness functions. It has the characteristics of low use frequency, high income level, wide distribution of time and distance, mainly used by young and middle-aged people, and used for a single time of more than 1 hour. Natural scenery along the trail is the most important attraction factor, and waterfront space and walking space are the main use behavior characteristics.