I have a directory that was originally all ".doc" files and were copied over to an external hdd. Now all the files are 'binary' files. Some have extensions, many do not.
I tried opening them with the following commands after making them executable, and separately, without making them executable.
chmod +x filename.bin (or filename.chk)
For example: chmod +x file.chk This resulted in $ on the next line.
./filename.bin (or ./filename.chk)
For example: ./file.chk This resulted in "cannot execute binary file" "exec format error".
I want to open these files just like you would open a word document so I can read the contents.
file filename
(for some filename) – Andy Dalton Jun 21 '19 at 03:40open
mean? .... we have no idea what you are trying to do unless you explain it – jsotola Jun 21 '19 at 04:37