# ls command

**URL:** <https://community.unix.com/t/ls-command/171441>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [May 23, 2007, 1:00am UTC](https://community.unix.com/t/ls-command/171441 "2007-05-23T01:00:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TicK](https://community.unix.com/letter_avatar/tick/32/6_449c533f586939b6e5f246632a46421f.png) [@TicK](https://community.unix.com/u/TicK)\
**Post date:** [May 23, 2007, 1:00am UTC](https://community.unix.com/t/ls-command/171441/1 "2007-05-23T01:00:39Z")

</div>

Hi, I have a question for a course I'm taking which I cant find the answer to:

Suppose you wanted to display their contents of testdir exactly like this?

testdir/bahenSW.JPG testdir/nothing.txt testdir/xxx  
testdir/blucrest.jpg testdir/text.txt

I've tried all the ls command flags and none of them display the file listings of a directory like this. What am I missing?

---

<div class="post-metadata">

**Author:** ![blowtorch](https://community.unix.com/user_avatar/community.unix.com/blowtorch/32/136_2.png) [@blowtorch](https://community.unix.com/u/blowtorch)\
**Post date:** [May 23, 2007, 3:51am UTC](https://community.unix.com/t/ls-command/171441/2 "2007-05-23T03:51:06Z")

</div>

Like this?

```nohighlight
# mkdir testdir 
# cd testdir
# touch bahenSW.JPG nothing.txt xxx blucrest.jpg test.txt
# cd ../
# ls testdir/*
testdir/bahenSW.JPG testdir/nothing.txt testdir/xxx
testdir/blucrest.jpg testdir/test.txt

```

---

<div class="post-metadata">

**Author:** ![formyz](https://community.unix.com/letter_avatar/formyz/32/6_449c533f586939b6e5f246632a46421f.png) [@formyz](https://community.unix.com/u/formyz)\
**Post date:** [May 24, 2007, 5:08am UTC](https://community.unix.com/t/ls-command/171441/3 "2007-05-24T05:08:10Z")

</div>

very good,thank you

---

<div class="post-metadata">

**Author:** ![rajreddy](https://community.unix.com/letter_avatar/rajreddy/32/6_449c533f586939b6e5f246632a46421f.png) [@rajreddy](https://community.unix.com/u/rajreddy)\
**Post date:** [May 24, 2007, 5:49am UTC](https://community.unix.com/t/ls-command/171441/4 "2007-05-24T05:49:17Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![TicK](https://community.unix.com/letter_avatar/tick/32/6_449c533f586939b6e5f246632a46421f.png) [@TicK](https://community.unix.com/u/TicK)\
**Post date:** [May 24, 2007, 3:11pm UTC](https://community.unix.com/t/ls-command/171441/5 "2007-05-24T15:11:46Z")

</div>

ah yes tyvm
