Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I could do this on my own if I was in the /sbin directory, but I cant seem to figure out how to do this form the parent directory.

share|improve this question
Try this: ls -ld az* – user223882 Apr 19 '14 at 22:33
up vote -1 down vote accepted

This should do:

ls /sbin | grep '^az.*'

share|improve this answer
Thank you, I was confused on how to combine ls and grep, or if you even need to. :) – user271199 Apr 19 '14 at 22:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.