"Kompletne dzieła Szekspira, nieskompresowane, zajmują mniej więcej tyle samo miejsca, co 2 typowe zdjęcia zrobione nowoczesnym smartfonem (~5 megabajtów)."quora: What-s-something-a-computer-programmer-knows-that-would-amaze-people-who-use-computers Typy Plikiwhat-are-binary-and-text-files by Nayuki podział klasyczny tekstowe binarne podział wg MIME application audio font example image message model multipart text video MIME Media type, zwany także typem MIME (od ang. Multipurpose Internet Mail Extensions) oraz czasem Content-Type (po nazwie nagłówka kilku protokołów, którego wartość jest tego typu) – dwuczęściowy identyfikator formatu plików i formatu treści przesyłanych w InternecieTyp_MIME w wikipedii

Ustawienia Plik z ustawieniami: /etc/mime.types

# Media (MIME) types and the extensions that represent them. # # The format of this file is a media type on the left and zero or more # filename extensions on the right. Programs using this file will map # files ending with those extensions to the associated type. # # This file is part of the "media-types" package. Please report a bug using # the "reportbug" command of the "reportbug" package if you would like new # types or extensions to be added. # # The reason that all types are managed by the media-types package instead # allowing individual packages to install types in much the same way as they # add entries in to the mailcap file is so these types can be referenced by # other programs (such as a web server) even if the specific support package # for that type is not installed. # # Users can add their own types if they wish by creating a ".mime.types" # file in their home directory. Definitions included there will take # precedence over those listed here.

sprawdzanie

Sprawdzamy typ pliku wg MIME: stackoverflow question: how-to-use-the-xdg-mime-command

xdg-mime query filetype a.txt

Tutaj "a.txt" jest istniejącym, konkretnym plikiem. Wynik:

text/plain

Sprawdzamy jaka jest domyślna aplikacja do otwarcia pliku typu pdf

xdg-mime query default application/pdf

Przykładowa odpowiedź:

FoxitReader.desktop

Ustawienie domyślnej aplikacji: zainstalowanie aplikacji utworzenie pliku desktop w katalogu ~/.local/share/applications wpis do bazy danych ( /etc/mime.types) , uaktualnienie sprawdzenie

update-mime-database ~/.local/share/mime

otwieranie Otwórz bieżący katalog w domyślnym eksploratorze plików:linuxcommandlibrary : xdg-open

xdg-open .

Suma kontrolna sha256sumunix.stackexchange question: why-are-end-of-file-and-end-of-input-signal-treated-differently-by-sha256sum

Żródła