Command Line File Completion On CentOS 7

Home » CentOS » Command Line File Completion On CentOS 7
CentOS 3 Comments

I have noticed on CentOS 7.2 that when I am doing command line file TAB completion it behaves differently.

if I have a file /tmp/file 1.txt (notice the space)

when I do:

ls /tmp/file and hit TAB it works

but if I do:

more /tmp/file and hit TAB it does NOT work. What I get is
1.txt file

versus just expanding to /tmp/file 1.txt

Why are they not the same?

Thanks,

Jerry

3 thoughts on - Command Line File Completion On CentOS 7

  • John Hodrien wrote:
    Not just more for me – in odd cases, not all the time, but on some of our servers, and no, I don’t remember if they’re C6 or c7, sometimes filec works, and others not. Thinking about it, I think it works with ll, but not if I’m doing a command, and the filename is a parameter.

    It’s annoying….

    mark

  • It’s anything that has a buggy completion config. javaws doesn’t do what I
    want either.

    You’ll also find that \more behaves where more doesn’t.

    jh