Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active August 15, 2018 08:14
Show Gist options
  • Save YumaInaura/c2f6a97047e42a2c19da7673551cd11b to your computer and use it in GitHub Desktop.
Save YumaInaura/c2f6a97047e42a2c19da7673551cd11b to your computer and use it in GitHub Desktop.
Linux—Command completion does not work when try to execute no extension file

Linux—Command completion does not work when try to execute current directory file directly ( no extension file )

Linux suprised me today ( as good meaning ).

Try

Create executable file.

touch example.sh

Next input filename and try to execute it.

./exa

But command completion does not work … why?

Answer

Because this file no executable permission.

chmod +x example.sh

You can use command completion now after chmod.

./example.sh

OK!

Versions

  • Docker version 18.03.1-ce, build 9ee9f40
    • $ docker run --interactive --tty ubuntu /bin/bash

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment