문제

I am trying to understand what this command does.

who | cut –c1-8

Is it displaying the first 8 characters of details of users logged in?

Or is it displaying the first 8 people who are logged in?

Thanks.

도움이 되었습니까?

해결책

cut -c1-8 will display the first 8 characters of each line of its standard input. The full pipeline will thus display the first 8 characters of details of all users logged in.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top