# How to get the list of atoms which have minimum distance

**URL:** <https://gromacs.bioexcel.eu/t/how-to-get-the-list-of-atoms-which-have-minimum-distance/6455>\
**Category:** User discussions\
**Created:** [May 20, 2023, 7:03am UTC](https://gromacs.bioexcel.eu/t/how-to-get-the-list-of-atoms-which-have-minimum-distance/6455 "2023-05-20T07:03:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sreevas](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Sreevas](https://gromacs.bioexcel.eu/u/Sreevas)\
**Post date:** [May 20, 2023, 7:03am UTC](https://gromacs.bioexcel.eu/t/how-to-get-the-list-of-atoms-which-have-minimum-distance/6455/1 "2023-05-20T07:03:15Z")

</div>

I have calculated minimum distance between two groups how do I check the atoms which have minimum distance i tried -[no]printresnames but it says invalid command

---

<div class="post-metadata">

**Author:** ![alevilla](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alevilla/32/439_2.png) [@alevilla](https://gromacs.bioexcel.eu/u/alevilla)\
**Post date:** [May 26, 2023, 12:10pm UTC](https://gromacs.bioexcel.eu/t/how-to-get-the-list-of-atoms-which-have-minimum-distance/6455/2 "2023-05-26T12:10:39Z")

</div>

Hi,  
maybe the option -o is providing what you look for.  
\Alessandra
