Questions tagged [file-format]

For questions relating to file-formats. This is a general tag, please consider using the actual file-format your question relates to as a tag instead.

Filter by
Sorted by
Tagged with
3
votes
1answer
54 views

How to set default application based on file extension, not mime type?

I have files with extensions .txt, .sln and .csproj, they all have mime type text/plain. But they should be opened by different programs. .txt - by Vim, .sln and .csproj - by Rider. How can I achieve ...
0
votes
2answers
30 views

Are file names allowed to use dots other then before the file extension?

I am checking file name validity on Ubuntu computers. I want to check whether the file extension is correct. Is separating the value after the first dot in order to get the file extension will do? if ...
1
vote
1answer
66 views

Cannot open 90% of recently saved images

I very recently installed Ubuntu 20.04 on my laptop and have been having this issue where I can't open most of the images I have saved. I get an error that says Unrecognized Image File Format (...
0
votes
0answers
18 views

Ubuntu login problem after restoring backuped files from windows

Hello this is the description of my problem: I installed Ubuntu 20.04 LTS on my inspiron N5010 Laptop. It runs very well until I restore my backup files. After that operation I can't login my account ...
1
vote
0answers
23 views

How to display classic man page from local file with troff format?

I have a file with troff format and would like to recast to man page file.txt: .. c:function:: bool is_module_percpu_address (unsigned long addr) test whether address is from module static ...
2
votes
0answers
94 views

Open encrypted .dmg file?

I have an old encrypted .dmg file I would like to open. Tried what I could but now I am out of options. Option 1: dmg2img Getting error message: dmg image is corrupted Then I tried to use vfdecrypt, ...
0
votes
2answers
122 views

How to find all files that are not a certain extension?

Let's say I'd like to delete every file in a directory that is not a .png file. I'd only like to keep pictures, and delete everything else. Something like this, which obviously doesn't work: for ...
-1
votes
2answers
367 views

Opening winmail.dat attachments

After saving an attachment in a Thunderbird mail message to my Ubuntu 16.04 files, I was informed that a winmail.dat file can't be opened. I am not tech-savvy. Is there an easy solution?
0
votes
1answer
46 views

How to open a file with a determined application even when the type is opened by default by another application?

Context Okular is a PDF reader with support to annotations, bookmarks, etc. When I want to save the PDF with the annotations and bookmarks embedded, Okular saves a application/zip file. When I open ...
13
votes
3answers
4k views

Why do some applications have files with no extension? [closed]

Why do developers choose to not use file extensions for certain files? Here is an example from MediaWiki - This appears with intention, e.g 'CREDITS' and 'COPYING' is with legal intent, perhaps. Why ...
1
vote
1answer
92 views

How to programatically get program associated with a given file extension?

How can I without any manual GUI use check what will open file with a specific file extension - for example .rb? Not a duplicate of how can I change file association globally? as mine is about ...
0
votes
1answer
72 views

How do I forward emails in thunderbird in a format other than .eml?

When I forward emails in tbird, they are attached as .eml files. Some recipients can't open these files. How do I forward emails in a different file format? e.g., as text files perhaps?
0
votes
0answers
52 views

Is it possible to set the default file extension for new files in sublime text?

I want new files to have default .txt extension. How can I do this?
2
votes
1answer
95 views

How to change default program for files ending in one extension

In Ubuntu 18.** how do I set a default program only for files with one specific file extension? For example if I use the graphical interface and use "Set as default" for a .txt file it also changes ...
0
votes
0answers
59 views

How to set the different default application for plain text documents with different extensions?

On my Ubuntu 18.04 machine I would like to write my own program "myprogram" to open an extension (.dzi), which is a plain text file. I followed this link: Creating .desktop files to use on the "...
0
votes
3answers
230 views

Bulk change file extensions [duplicate]

I have a folder with ~30 files. The are already BitTorrent metafiles that lack a .torrent suffix. I want to change all those files to .torrent files. How would I do that? In windows it was as easy as ...
0
votes
0answers
81 views

Ubuntu Randomly Started Adding ^M (CRLF) to line breaks (all editors)

When I do normal line breaks using enter key on my Ubuntu 18 (Virtualbox), it always appeared fine in git - it never added ^M (which I learned is a version of a carriage return/line feed used by DOS). ...
0
votes
0answers
395 views

Moving the data from ext4 to xfs filesystem

I have a volume /data which is formatted using xfs and has data on it. I have created a new volume /data-test using ext4 file system and copied the data from the /data to /data-test Will there be any ...
0
votes
0answers
17 views

.cr2 files don't copy paste from pendrive to hard drive on ubuntu 18.04LTS

I have some raw files in pendrive. Whenever I try to copy them to my hard drive it shows an error message and coping only jpg files. How can I copy the full folder without losing cr2 files? https://...
1
vote
1answer
113 views

How does External HDD with NTFS format works on Ubuntu?

I connected my external HDD which is formatted in NTFS file format, I was able to read as well as write to it. I have read that Linux can only read NTFS drives but can't write to them. How does this ...
0
votes
0answers
35 views

How to recover data from formated disk partition

I updated my laptop windows 7 to Ubuntu 18 but my all partitions are deleted (remove all data from drive D and drive E). During installation time I selected erase disk and install Ubuntu. So, how can ...
0
votes
0answers
26 views

How do we change the file format? [duplicate]

I'm facing an issue, stating that the cpio files contain junk, which results in kernel panic. Hence I'm looking for alternate ways to pack a file, precisely, pxe extension, which is easier to mount by ...
0
votes
2answers
81 views

Can not locate a downloaded file with empty name [duplicate]

I downloaded a video using Chrome in Ubuntu by giving empty name, i.e. .mp4 only. I can play using Chrome when I click on it in the download section in Chrome but I can not find this video in the ...
2
votes
1answer
526 views

XSD-1.1 command line validation tool for Ubuntu

I'm looking for a command line tool to validate an XML file with an XSD-1.1 file. I have downloaded and installed libxerces2-java and then tried to apply Free and open source XSD 1.1 validation tool? ...
3
votes
2answers
1k views

Canon's .CR3 - No Raw Editor on Ubuntu supports?

Please note, that format in context here is Canon's relatively new .CR3 This: I'm either not searching with the right words, or support for .CR3 from Canon camera's like the M50 (that I have) doesn'...
5
votes
2answers
474 views

FILE extension changing while copying from Ubuntu to windows

I downloaded data in Ubuntu which has an extension .text/plain bit when I copied it to my Windows 10 through USB the file extension is changed to '.file'. What should I do now to open it?
1
vote
1answer
109 views

Changing file extension

I have about 1000 images saved in a weird way. "file_name".jpeg?image=%2Fmars%2Freadonly%2Fthemis%2Fpds%2FODTGEO_v2%2Fbrowse%2Fodtbws2_0050%2Fv545xxbws2%2FV54577010POL.png&rotate=0&format=...
0
votes
2answers
9k views

Twitch error #6000

I just installed a fresh Ubuntu and logged into Firefox. I got my usual addons and credentials and after some time logged into twitch to find that every stream gets the following error: I tried ...
1
vote
1answer
78 views

Unable to upload .amr files in Ubuntu?

I'm trying to upload media files to a website I'm maintaining. The latest one to be added is .amr (test file from here) and it's causing problems, but only with Ubuntu. It works fine on Mac OS (High ...
4
votes
1answer
790 views

Can't Move the Dropbox Folder to Ext4 or NTFS partition

I'm using Ubuntu 16.04 LTS. In response to the change in dropbox file system support, I created a new partition on my hard drive to store my dropbox files in. It's 2 GB larger than my maximum dropbox ...
3
votes
2answers
1k views

Copy all files from certain file type extension in script

I am trying to execute the following command in a shell script where adir="mydir" and extType=*.txt cp "$adir/$extType" "$destination" However I get: cp: cannot stat ‘mydir/*.txt’: No such file or ...
0
votes
1answer
100 views

How to change a hypen to a period in a file and/or directory

I'm trying to do this in linux/bash. I have multiple directories. I don't mind doing each one individually as there are just a few. In each directory, there are files and folders with names like... ...
-1
votes
1answer
108 views

How to copy every line from a file to MS Word using nano [closed]

I would like to copy every line and character from a file to Microsoft Word or another word processor. However, when I select all the text with nano text editor and paste it to LibreOffice Word, all ...
0
votes
0answers
18 views

how to convert all the file with extention JPEG to have lowercase jpeg [duplicate]

So for some weird reason my ubuntu 16.04 has uppercase extension for images. I know i can do this rename.ul JPEG jpeg *.JPEG to convert all images in a folder to have lower extension. But I have 100 ...
0
votes
0answers
66 views

Thunar: set different default applications for *.rkt files and *.txt files

The problem: whenever I set a default program for opening *.rkt files, it also becomes the default program for opening *.txt files. Whenever I set a default program for opening *.txt files, it also ...
1
vote
1answer
213 views

Removing line breaks from log files

I'm trying to extract some information from a log file and need to remove the line breaks from it, in order to handle it easily, here is an example of the needed result : input file : 02/01/2018 08:...
-5
votes
1answer
2k views

What's the file format of “application/x-executable” [closed]

No no no no. I can run the file. My favorite game is that file format and I can run it just fine. Same as other programs with it. My question is what the file format of it? You know. Things like .sh, ...
0
votes
0answers
141 views

How to create new file extension? [duplicate]

I need to create custom file extension like myfile.foo for scripting files how can i configure this ?
0
votes
2answers
838 views

why I get “existing superblock read failed: Invalid argument”

Facing issue while running mfks.xfs -f -i $ truncate -s 41943040 /d/backends/disk1 $ mkfs.xfs -f -i size=512 /d/backends/disk1 gives error meta-data=/d/backends/disk1 isize=512 agcount=2, ...
0
votes
1answer
584 views

LibreOffice Writer (6.0.1.1): Lock it to export files as PDF instead EPUB

I currently use LibreOffice Writer (6.0.1.1) and each time I export a document its default file extension is .EPUB. Thus, each time when I want the file to be exported as a PDF, I need to manually ...
1
vote
2answers
86 views

wildcards on executables (binaries)

I can use wildcards to select certain types of files by their extensions, e.g. mv *.cc src/ How to select executables that don't have an extension?
2
votes
1answer
405 views

How can I edit srf image files?

I have a Garmin Nuvi GPS, which contains images, in dot SRF format. I would like to edit the images, or create new srf image files. I have tried to use GIMP to edit or export images to and from this ...
0
votes
1answer
392 views

a command or script for changing encoded characters in a text file

I believe there are other options too, but I was wondering would it be possible to replace some characters in a text file with the Command line? Example: è to č, æ to ć and so on... Could I point a ...
4
votes
1answer
332 views

Why don't we have magic numbers for shell scripts?

Ubuntu and Unix systems in general use magic numbers to specify a file's type, so that e.g. VLC will open a .mp4 file even if the extension is stripped from the file name. However in scripts the ...
0
votes
1answer
2k views

How to open .ext file extension?

I have a file with *.ext extensions. How to open that file in ubuntu? I search on this, they say that it can open with norton commander in windows. Update: The file is zipped sqlite database
75
votes
6answers
58k views

Any app on Ubuntu to open and/or convert HEIF pictures (.HEIC, High Efficiency Image File Format)?

A certain cellphone maker has changed the default format of taking pictures to HEIF (.HEIC, High Efficiency Image File Format), without asking the users (although there is still the option to use jpeg/...
0
votes
1answer
51 views

File extension issue

usually when I compile a C program I give the command: gcc -o program_name program_name.c I have a folder full of program_name and program_name.c files. I wanted to delete the program_name files. ...
0
votes
0answers
651 views

Cannot run g++ compiled code. Get permission error. Used chmod, got Exec format error

I have been using Code::Blocks to write some code and I used cbp2make to generate a makefile that compiles with g++. I run make and I get all of the ".o" files the makefile promises in the "obj/...
0
votes
1answer
132 views

Does a filename in Ubuntu starting with “readme” automatically becomes a readme document type?

I'm working on a tomcat project so I saved a jsp file with the name of readmessages.jsp with sublime-text editor. When I opened and saw it's type(because it was displaying a readme icon on top of the ...
3
votes
3answers
4k views

What is the output of `cat image.png`?

What does the output mean when you do cat image.png? Is this what the image actually is made of? Does it matter what file extension the image has?

1
2 3 4 5