I understand that if you type ls *
it is actually expanded to ls a b c
when the current directly has files a
, b
and c
.
I was wondering if there is a way to expand this before I hit enter. Similar to how Ctrl+X works, or tab complete works.
So to make myself clear
$ ls *
<press magic key>
$ ls a b c
in a similar way to:
$ ls ~/
<press tab>
$ ls /home/username
I thought I'd seen this before but I might have been mistaken.
*
and then running it - but the use case for all of them is when you want to expand them all and then edit a few random ones out that are too hard to hit with a regex before you hit enter.