I have  file, and I have absolutely no idea what kind of file it is.  When I open it in Notepad++ it reads as  ð    X      döS      or    How can I figure out what this is, and how to modfiy it?
7633
I sometimes get files from my clients that have the wrong file extension. For example, the name is image.jpg but the file is actually a TIFF image. In many cases I can clarify it by opening the file in a text editor, looking at the first few bytes, then deducing which file type it is.  This works for me with JPEG, TIFF, GIF and PDF files. However there are many more file types out there.  Is it possible to automate identification of the correct file type by analyzing the containing data?
21512
I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python?  deals with C#.
115808
I want to list the components of the current working directory in a text file  ls -1 &gt; textfile   Output looks fine with more.   1010661085645 1010729039145 1010747080245 1010849051345 1010859053445 1011046075845   However when I view this textfile with emacs, several strange characters appear  [0m[01;34m1010661085645[0m [01;34m1010729039145[0m [01;34m1010747080245[0m [01;34m1010849051345[0m [01;34m1010859053445[0m [01;34m1011046075845[0m   Can anyone explain what is going on here?
98998
I need to do create a file with a filename such as :&gt;?, is this possible somehow? Windows stops it.
103667
How can I read a dash file from the terminal other than delimiting it with ./  For example to read a - file we can read it by   cat ./-file_name  Q: Is there an alternative way to achieve the same thing?
86388
I decided to open a file instead of saving it, made lots of changes saved many times, but when I closed it, I realised I couldn't find it anymore.  I'm hopping the file is still here, but can't find it anywhere. Is there any way I can recover this file?  PS: it seems the file should be still there somewhere, because if I re-open the original file from the page it puts the "[2]" in the end of it, which could mean it conflicted with some original file.
37790
As the question goes, how does Ubuntu know what file type a file without extension is?  When I save a file as "Untitled Document" without any extension, how does it know? Same thing for video and music formats...
44870
I'm new to Linux and Ubuntu. People keep using ~/filename in their answers to my questions. What does ~/ mean?
68715
Pages has crashed, my file is now corrupted and I'm trying to get the text from this file.  if I Right click on the file > Show package content > open index.zip , I can see a bunch of .iwa files which seems to contains my original text, especially "Document.iwa".  If I "$ nano Document.iwa" (because "$ file" only returns "data") I can see some of my text, but the overall seems crypted.  Does anyone know how to decode/read this kind of .iwa file or recover corrupted files?
12796
When I open the file in Vim, I see strange ^M characters.  Unfortunately, the world's favorite search engine does not do well with special characters in queries, so I'm asking here:   What is this ^M character? How could it have got there? How do I get rid of it?
30587
I have a file that is formatted as a .doc, but Nautilus and LibreOffice insists that it is a .txt. Both precise and Ubuntu 12.10 are that way, but Google Docs can convert it (after playing with it).
95308
Windows still uses ~ for shortening files and directories with long names. You can see the "short" name by typing dir /X in the command prompt.  My question is how are the digits assigned to the short file names? It doesn't seem to be alphabetical nor does it seem to work by file creation time.  For example:  I create a new text file: C:\reallylongfilenameB.txt  Then I run dir /X and see the short name of fileB is REALLY~1.TXT  I create a second text file: C:\reallylongfilenameA.txt  Then I run dir /X and see the short name of fileA is REALLY~2.TXT  Then I set the clock back a day, delete C:\reallylongfilenameA.txt and then re-create it, essentially making the create date of C:\reallylongfilenameA.txt 1 day before C:\reallylongfilenameB.txt.  I run dir /X and C:\reallylongfilenameA.txt short name is still REALLY~2.TXT.  Given this example, is there any way to make the short name of C:\reallylongfilenameA.txt be REALLY~1.TXT?
443
In Windows, I believe that files with a tilde in the file name represent files that are currently open in an application. For example, Microsoft Word creates a file with almost the same name as the file you currently have open, but with a tilde in the name. It's icon is also partially faded. As far as I'm aware, this signifies a temporary file that exists   in case the application crashes and you didn't get a chance to save your file, or to allow the original file to remain unlocked by the file system and accessible to other applications.   In Linux, I ran into a *.log file with a tilde at the end of the file name (scan.log~). Does that mean the log file is currently open in another application that is potentially writing to it?
69617
I have created two files:  sample.txt and sample.txt  (the second file contains some hidden characters, e.g. a space). How can I remove the latest modified file? I'm using Linux.
94237
I was trying to find how to pass some text to a file without overwriting what's there already using the > command and I realised I don't know what it's called. Searching for right arrow or right chevron or more than command didn't show up anything. I've always just called it pass to.
16320
When I'm using  find . -type f -name "*.htm*" -o -name "*.js*" -o -name "*.txt"  it finds all the types of file. But when I add -exec at the end:  find . -type f -name "*.htm*" -o -name "*.js*" -o -name "*.txt" -exec sh -c 'echo "$0"' {} \;  it seems it only prints .txt files. What am I doing wrong?  Note: using MINGW (Git Bash)
74022
Just discovered I have gotten a FOUND.000 folder on my usb drive. I guess from running chkdsk once. It has three files in it:   FILE0000.CHK FILE0001.CHK FILE0002.CHK   What exactly can I do with these files? What are my options? Are they lost files? Are they garbage? Can I use them for anything at all? Or will I just have to delete them?