How do I fix an invisible file name?
I can open it in Notepad, and it shows the filename as .gitignore, but it shows up like this:
Google gives me tutorials on how to accomplish this, but I want the inverse.
How do I fix an invisible file name?
I can open it in Notepad, and it shows the filename as .gitignore, but it shows up like this:
Google gives me tutorials on how to accomplish this, but I want the inverse.
I suspect it's because it's a "known extension" and you have those hidden.
Open Windows Explorer and go to Organize
=> Folder and search options
=> View
tab => untick Hide extensions for known file types
.
harmless text file.txt.exe
, because they don't see the .exe
extension.
I second the suggestion of unchecking "Hide extensions for known file types".
This "feature" is not really useful, may be annoying (as in this case), and not really safe - figure out the classic scam virus attachment, an executable called SomeText.txt(.exe, hidden) with same icon of system .txt files!
Otherwise, you can rename the file from command prompt or from GUI using F2, but be sure no application is pointing to it or will not find it after renaming.
It's not invisible, it simply does not exist: this file only has an extension.
BTW, Windows does not allow creating such files from the file explorer, only command prompt.
notepad
. Just select "All files" in save dialog file type filter and enter the name like .testfile
.
Windows doesn't really like filenames that start with a dit (.
). I get around this by dropping the leading dot and supplying a .txt extension.
After uploading to the server I rename the file. Many SFTP clients allow you to do this with a right click. From a shell you would use something like:
mv getignore.txt .getignore