File Extensions in Linux - Linux Tutorial 8

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

An extension is a suffix that provides information to a user about the nature of a file without the need for additional interaction.

My scripts are all suffixed with “.sh”. And their backups as “.sh.bak”. And sorting and finding are a breeze. And suffixless entries are easy to identify as directories. File symlinks get a prefix.

k.chriscaldwell
Автор

On Windows you can also have text files with config specific to some software. They may have no or a generic extension, and you can edit them the same in a text editor or a hex editor. There are varieties of text with script/markup/settings that you couldn't reliably detect without some context.

The computer would have to do a lot of number crunching to determine that it is only ASCII text and not followed by some other data. There are format identifiers that try to make that guess on Windows. You wouldn't run them on a few hundred files in a list.

Does Linux have a file manager that sends .jpg to a graphics editor, and .txt to a text editor? If it only does generic things like "move" then he doesn't need to care about the contents, and it works the same on Windows.

I've recently noticed that there is an army of file extensions for Linux graphics formats: PBM, PPM, PGM, PFM, PNM, PAM. Every color depth gets is own extension. That is weird. On Windows, you'd just get, let's say TGA, and it then reads the data to determine the subtype.

jndominica
Автор

Getting close to the halfway mark to 1 million subs 👍

KowboyUSA
Автор

Is should make a function that wont start a file if the extension is not equal to the filetype. And would warn me.

amosnimos
Автор

I feel like the extension is pretty relevant considering every time you changed it the output changed

batpunk