1

Edit: Using bash.

I am in a directory that has several files in it. As a quicker method than typing it out, I would like to get one of those file names to "type itself" on the command line.

So far, my command is

mv

I would now like to "select" a file name to "populate" onto the command line.

1 Answers1

0

Hit Tab twice. and your shell ( to find out echo $SHELL or getent passwd $USER | cut -d: -f7) will show you your choices.

Then, type the first few characters of the filename, and hit Tab again. If what you typed uniquely specifies 1 file, that filename will be filled in, if not, you'll see another list.

waltinator
  • 36,399