Whats different "name.txt" vs "name.txt " in Linux?
If I rename name.bin to name.txt - is normal and file doesn't executable.
If I rename name.bin to file.txt (with space after filename) - file will be executable.
Whats different "name.txt" vs "name.txt " in Linux?
If I rename name.bin to name.txt - is normal and file doesn't executable.
If I rename name.bin to file.txt (with space after filename) - file will be executable.
Whether the file is executable (or not) is a matter of permissions, not of the name.
Use chmod a+x to make it executable and chmod a-x to disallow it. Full details here:
name.bintofile.txt\? if you usecp name.bin file.txt\andfile.txt\already exists and is executable, it will stay that way;cpwithout the-pflag won't change its permissions. – Oct 20 '18 at 15:42