181 votes

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

In recent Ubuntu versions (>= 18.04): sudo apt-get install libheif-examples And then for file in *.heic; do heif-convert $file ${file/%.heic/.jpg}; done In older Ubuntu or Mint versions, first add ...
kerner1000's user avatar
  • 4,220
147 votes
Accepted

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

Ubuntu 22.04 quick start install heif-gdk-pixbuf for support in at least eog (Eye of GNOME, GNOME Image Viewer). install heif-thumbnailer for file manager (nautilus, nemo) thumbnails. The available ...
Filbuntu's user avatar
  • 13k
80 votes

Do file extensions have any purpose in Linux?

There is no 100% black or white answer here. Usually Linux does not rely on file names (and file extensions i.e. the part of the file name after the normally last period) and instead determines the ...
Byte Commander's user avatar
  • 107k
79 votes
Accepted

How to properly view a .sqlite file using sqlite?

Let's start with the more user-friendly way and use the GUI tool sqlitebrowser. It offers you to easily explore a database without having to know SQL commands. You can install it with the command ...
Byte Commander's user avatar
  • 107k
47 votes
Accepted

Do file extensions have any purpose in Linux?

Linux determines the type of a file via a code in the file header. It doesn't depend on file extensions for to know with software is to use for opening the file. That's what I remember from my ...
Rinzwind's user avatar
  • 299k
41 votes

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

On Ubuntu 20.04 Focal Fossa: $ sudo apt install heif-gdk-pixbuf heif-thumbnailer gimagereader gpicview then find an HEIC file in the file manager, right click, select Properties then Open With and ...
Wil's user avatar
  • 805
40 votes

Why do some applications have files with no extension?

There's no established mandate in the Linux world that there must be extensions. Filesystems for UNIX-like operating systems do not separate the extension metadata from the rest of the file name. The ...
K7AAY's user avatar
  • 17.2k
24 votes

Do file extensions have any purpose in Linux?

As mentioned by others, in Linux an interpreter directive method is used (storing some metadata in a file as a header or magic number so the correct interpreter can be told to read it) rather than the ...
Zanna's user avatar
  • 70.4k
24 votes

Do file extensions have any purpose in Linux?

I'd like to take a different approach to this from other answers, and challenge the notion that "Linux" or "Windows" have anything to do with this (bear with me). The concept of a file extension can ...
IMSoP's user avatar
  • 1,499
23 votes

Mounting Disk Image in Raw format

You can also have the computer automatically scan all the partitions in a dump and automatically prepare all loop devices, as described here. So, lets say you dumped your entire /dev/sda into ...
aggregate1166877's user avatar
23 votes

How do I view an Outlook .msg file?

I am on Ubuntu 15.10 and matijs'es msgconvert script seems to be available in the repos now. after running: sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-...
mnagel's user avatar
  • 995
22 votes
Accepted

How can I find all video files on my system?

Alternative: search on file: sudo find . -type f -exec file -N -i -- {} + | grep video or if you only want the filenames ... sudo find . -type f -exec file -N -i -- {} + | sed -n 's!: video/[^:]*$!!p'...
Rinzwind's user avatar
  • 299k
20 votes
Accepted

Does Ubuntu carry over Windows filenames (png, exe, ect.) or does it have its own?

These are filename extensions, and many of them will be the same between Windows, Linux and MAC OS. Most executables are not cross-platform, which means you will have to find Linux versions of ...
earthmeLon's user avatar
  • 11.2k
18 votes

Native flac .cue splitter

There is an app called Flacon which does exactly this. To install: sudo add-apt-repository ppa:flacon sudo apt-get update sudo apt-get install flacon
Antonis Vlachos's user avatar
16 votes

Do file extensions have any purpose in Linux?

Actually, some technologies do rely on file extensions, so if you use those technologies in Ubuntu, you'll have to rely on extensions too. A few examples: gcc uses extensions to distinguish between C ...
Dmitry Grigoryev's user avatar
12 votes

Getting rid of the p7m file extension

Create a small shell script like this one: #!/bin/bash openssl pkcs7 -inform DER -in "$1" -print_certs -out "$1.pem" openssl smime -verify -in "$1" -inform der -noverify -signer "$1.pem" -out "$1.pdf"...
user3801675's user avatar
12 votes

How can I find all video files on my system?

I imagine this could be done as a 1-liner but it seemed a bit cumbersome so I created a script for ease of launching and editing and called it findvids.sh This is what worked for me. Note: I may not ...
Elder Geek's user avatar
12 votes
Accepted

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

cat will print out the content of the file (zeroes and ones which will be mapped to meaningless characters, because they're not really characters right?) into stdout which by default is your terminal. ...
Ravexina's user avatar
  • 55.7k
10 votes

Does Ubuntu carry over Windows filenames (png, exe, ect.) or does it have its own?

No. Unix/Linux did NOT make the same error as windows by building how a file is treated into the user-controlled filename (secrets.pdf.exe, anyone?). Sometimes, Unix/Linux users use file extensions to ...
waltinator's user avatar
  • 36.3k
9 votes

Is it possible to view WebP images in nautilus / photo program?

Since 16.04 display image.webp or for thumbnails display 'vid:*.webp' Imagemagick does support webp now, although it uses webp, so you need to install webp sudo apt-get install webp
Janghou's user avatar
  • 5,699
9 votes

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

cat simply outputs contents of the file to stdout stream, which in your case happens to be terminal. What happens with the sequence of 0's and 1's that comprise the file is up to the terminal. In case ...
Sergiy Kolodyazhnyy's user avatar
9 votes

FILE extension changing while copying from Ubuntu to windows

It appears that Windows adds the .file extension to any file with an extension it doesn't know/recognise. Understandable, because text/plain is not a file extension but rather a 'content type'. It ...
Koen's user avatar
  • 532
8 votes

Is there an application for reading mobi files?

Foliate is one of the best applications for reading epub and Mobi files. You can use your favorite method for obtaining it. PPA sudo add-apt-repository ppa:apandada1/foliate sudo apt update sudo apt ...
Seyed Morteza Mousavi's user avatar
8 votes

How to fake the format of file to an arbitrary format?

Linux does not care about file extension. Changing the file name does NOT let the file command show it is a picture. It will still show it is an ISO. How do you believe to retrieve the ISO from doing ...
Rinzwind's user avatar
  • 299k
8 votes

Convert PDF to Word Using Libreoffice in terminal

I'm using LibreOffice for a long now but still can't understand it how does it work with different files. I'm using the below command to convert PDF to WORD. You may try : libreoffice --infilter=&...
rahim.nagori's user avatar
7 votes

Batch convert ai files to pdf / png etc

A typical .ai file (from version 9 up), saved the normal way (with PDF compatibility) does not need any special conversion (in most cases). For example, if you take a typical .ai file ...as I said, ...
Michael M's user avatar
  • 172
7 votes

Native flac .cue splitter

I needed to split large flac and set file name and tag from the cue file, and this worked best for me: cd to a folder with one pair of cue and flac type this: shnsplit -f *.cue -t "%n - %p - %t" -o "...
Amir Uval's user avatar
  • 1,143
7 votes

How to assign (set) a MIME type to a file?

Question is already answered by @PHPLearner in a comment. However, here is a longer answer. There is no particular command like mime as asked in the question, and no doubt one such command can be ...
C0deDaedalus's user avatar
  • 2,375
7 votes
Accepted

Copy all files from certain file type extension in script

You should change "$adir/$extType" to "$adir/"$extType otherwise glob expansion won't take place and it looks for a file exactly with the name of *.txt which can not be found and thus it complains ...
Ravexina's user avatar
  • 55.7k
7 votes

Cannot open 90% of recently saved images (webp format)

The 90% of the images that you were unable to open are .webp image files which are becoming more and more common on the web. webP uses the modern VP8 compression format to deliver efficient ...
karel's user avatar
  • 115k

Only top scored, non community-wiki answers of a minimum length are eligible