Server Fault is a question and answer site for system and network administrators. 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

Is there any way I can target a range of a-c* in one go?

For example, instead of doing this individually;


I've tried testing with ls, but not sure if it's working right.

ls /home/[a-c]*
share|improve this question
ls /home/[a-c]* seems to work ok. I've added an alternate way of expanding a sequence. – Aaron Copley Jul 17 '13 at 18:08
Totally did the trick. Thanks! – Will Ashworth Jul 17 '13 at 19:11
up vote 7 down vote accepted
ls /home/{a..c}*

(This is some extra text to meet the minimum body length.)

share|improve this answer

Alternatively, if you want a non-contiguous list:
ls /home/[aceg]*
will list /home/a*, /home/c*, /home/e*, /home/g*

share|improve this answer

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.