Sears interview question

linux command to check port