Questions tagged [file-type]
Questions about dealing with different file types, converting between them, detecting them etc.
59
questions
0
votes
2
answers
71
views
What is this type of file AND is there a parser?
type: confs
targets:
- /opt
excludes:
- ".whicotew.phsusr"
cron_min: "5"
cron_hour: "00"
uploads:
- rsync
I'm searching for its parser like jq for JSON.
7
votes
4
answers
7k
views
How do I change all plain text files to .txt files in a directory? Is there such a command?
I have tried rename command but didn't succeed.
0
votes
0
answers
42
views
Change default application for .strm files but not other types of files?
I'm trying to get .strm files (live streaming text file with the link) to automatically play with VLC. I've obviously done the 'set to default' option when telling it to use VLC, but unfortunately it ...
1
vote
2
answers
205
views
Just installed KDE and libreoffice calc is the default file association for inappropriate files
Right click on many kinds of files such as tar.bz2, ogg-vorbis etc. and the context menu always shows Libreoffice calc. The software to handle these files is installed and appears in open with ...
9
votes
3
answers
11k
views
Globally associate file type with certain application
I don't need "Ubuntu-tweak" and i know about GUI method of associating certain files with certain applications using right click and "Open with". I am having problem setting filetype association ...
2
votes
1
answer
179
views
How to use hexadecimal code as a magic value in mime-type file
I know to add a mimetype I must use a code like that:
<mime-type type="audio/x-gtp">
<comment>GuitarPro file</comment>
<glob pattern="*.gp5"/>
</...
0
votes
1
answer
307
views
How do I make sure my file is a video file?
How can I copy video files from a directory and rest assured that the file I copied was a video file and not something else with a video extension like ".mp4"?
0
votes
1
answer
238
views
How to find the archive type of an iso file?
For my iso image I used the tgz format, but there can also be an iso with xz, 7z, tar zip, etc. compression.
How do I know?
1
vote
1
answer
198
views
Same file type, different icon. How to reset it
I have a folder with Python source code. All files are being opened with double click with Text Editor, also the "problematic" one. All files have .py extension.
The "problematic" ...
5
votes
2
answers
2k
views
20.04 : "open with other application" menu not working properly on the Desktop
I recently installed 20.04 and for some kinds of files, whether text or binary ones, I'm unable to choose an application to open them like I used to in 18.04.
For example, when I right-click a .c (C ...
3
votes
1
answer
1k
views
How can I use the `identify` command to find out *only* the file type?
I want to use the identify command (from ImageMagick) to determine a file's type.
The sample command
identify -quiet 'Sample File.gif'
will list several lines. Is there a short and simple way to ...
0
votes
0
answers
23
views
How to run .msi file in linux? (Ubuntu in my case) [duplicate]
I've been trying to run a .msi file in ubuntu. From what I've read, the .msi file can run on Windows natively, however, is it possible to run the .msi file in Linux(Ubuntu in my case)?
0
votes
1
answer
99
views
file -i vs file property accuracy, how to check if file is text file
i'm using ubuntu 18.04 LTS, i'm using file -i along with find and other shell commands to generate list of text files inside a folder, it works like 99.9% of time, but there're a few exceptions
from ...
6
votes
4
answers
5k
views
reset default application to open with a file ( .crt)
using Ubuntu 14.04
I have 1 files .crt extension. when I click to open , it open with view file application which displays the certificate information and other details which is fine.
Now I have ...
39
votes
4
answers
61k
views
What does the first character of UNIX mode string indicate?
I'm very familiar with linux file permissions, and special perms (sticky bit, suid, guid)
But I don't know what the c stands for? Is it a permission, or something else? I've done some googling with ...
1
vote
0
answers
57
views
20.04 How can I edit file "Type" for files so they sort separately from 'similar' files in Files/Nautilus?
I have investigated similar questions, but they do not address what I want to do.
In 20.04, when I look at a folder with column "Type" enabled, I see for example, .pdf and .db files both ...
1
vote
1
answer
3k
views
How can I rename files/change their extensions based on mimetype with a script? [duplicate]
I'm hoping someone can explain to me how I can change a file type. I recently uploaded my pictures onto my laptop and half of them are saved as a file and not an image meaning I cannot upload them ...
1
vote
0
answers
153
views
properly opening compressed QGis files (.qgz) by double-click on bionic LTS causes a catch-22 regarding default application for Zip archives
Regularly using QGis on bionic 18.04.4 LTS makes me appreciate the possibility
to open a compressed .qgz file by double click.
This seems to not be the default after installing QGis.
Obviously, one ...
4
votes
5
answers
15k
views
How to associate file types with wine in nautilus
I have Ubuntu 12.10 with Nautilus 3.4.2.
After installing wine "apt-get install wine" are exe files still associated with the archive manager.
In previous versions of ubuntu I've always right ...
33
votes
2
answers
158k
views
gzip: stdin: not in gzip format
When I run:
tar -zxvf john-1.7.0.2.tar.gz
I get this:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
It should start unpacking.
Some ...
4
votes
3
answers
20k
views
How can I delete all my core files cleanly?
My computer at work has a tendency to generate an excessive amount of core files, which can be useful for debugging, but slowly take up all of the available space on my computer. I made this command ...
2
votes
1
answer
66
views
Space-delimited file (foo.out) incorrectly read as image
I have Ubuntu 16.04.1 LTS
Using the command write.table in R, I create a space-delimited file called foo.out.
write.table(dresults, file = "foo.out", quote = F, row.names = F)
For some reason, ...
2
votes
1
answer
138
views
image File type associations and sorting
Ubuntu 14.04. Just upgraded from 12
When downloading images from camera (RAW+JPG basic) In file viewer it associates both NEF and JPG as image types.My workflow first action was to separate Jpgs into ...
1
vote
0
answers
39
views
App is changing default application for specific file type
I'm trying to resolve a problem that, whenever I run Franz (https://meetfranz.com/), it changes the default application for .html files to Franz. I believe Franz is built based on electron.js so maybe ...
7
votes
2
answers
645
views
Command of files and size
is there a command to list what type of files are in a directory and the size?
for example, .jpg 1GB, .png 2GB, .avi 3GB etc. , thanks
3
votes
1
answer
4k
views
How to View the Entire Contents of a dat File
I have a dat file that appears to be an application/octet stream binary coded file, which I will like to view. I have tried to use a number of text editors to open the file but none of them opened the ...
6
votes
2
answers
912
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?
5
votes
2
answers
2k
views
file type options under properties on dolphin does not work. Ubuntu 16.04
I have installed dolphin, additional to Nautilus on Ubuntu 16.04. When I select a file and go to properties and press the file type options button nothing happens. A window showing possible ...
6
votes
3
answers
4k
views
Broken file type associations after running update-mime-database
After running sudo update-mime-database /usr/share/mime my gnome doesn't recognize any file types anymore. In Nautilus all files are now text/plain type and all now open with gedit by default. Gnome-...
19
votes
2
answers
7k
views
Why not make .txt file executable instead of .sh file to run scripts?
I was wondering what's the need to put executable commands inside a .sh file to make a single script, since I can do the same by putting the commands inside a .txt file and making it executable using ...
0
votes
0
answers
145
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 ?
17
votes
5
answers
66k
views
How can i open SDM.pkg and .sdx files on Ubuntu?
I would like to download Windows 8 disk images, but the files I have for the download are SDM.pkg and 100189659562.sdx. How can I open these files on my computer running Ubuntu?
1
vote
1
answer
243
views
ISO Files Are Being Classified As Text Files Under Kubuntu 17.10
The ISO files that I have are not being detected properly by my Kubuntu system.
Some of them are getting detected as "Raw CD Image" but others getting classified as "Text Document" or "Windows ...
1
vote
2
answers
95
views
Script showing file type?
I want to make a script that shows what type of file is
for example :
./file.sh haha test lala ssss
haha --> file
test --> directory
lala --> symbolic link
ssss --> executable
Im ...
1
vote
2
answers
8k
views
How can I start VirtualBox with an image of Kali Linux?
On my Ubuntu system VirtualBox 5.0 is unable to locate the virtual optical image of Kali Linux 2.0. This is the message:
Failed to open the disk image file /home/saiyad/Downloads/Kali-Linux-2.0.0-...
2
votes
1
answer
68
views
My Games folder has been turned into a program file and is no longer a directory
As stated in the title, I went to my games directory today, located on an external drive, which I hadn't used in a long time and found that it is no longer a directory but instead has turned into a ...
0
votes
1
answer
697
views
How to show WAV files on Ubuntu
I have some WAV files on my phone and they are not shown on that folder when I open it in nautilus on Ubuntu? What should I do?
0
votes
0
answers
124
views
Why is kate sudo-ed when remote file type is unknown?
I am accessing a remote server in Konqueror file manager using fish:// protocol (over SSH). All known file types that are plain text I can edit in Kate directly (right click > Open with > Kate). There ...
2
votes
2
answers
223
views
How can I change file types of multiple files at once?
I would like to change file type of multiple files at once.
The files are like A.1, A.2, A.3 ...
and I want them to be A.01, A.02, A.03 ...
It's kind of weird file type, but that's just how my ...
0
votes
1
answer
179
views
How can I change both names and file types of multiple files at once on Ubuntu 14.04?
I need to change both file names and file type of multiple files at once, but I'm not sure how to do that.
For example, I have files like A.1, A.2, A.3 ... I want them to be A1.dat, A2.dat, A3.dat......
3
votes
2
answers
12k
views
How can I view binary .log files with application/octet-stream mime type?
I have downloaded some log files from my server which I want to search for a specific string for debugging purposes. All of them have the .log extension.
The problem is that one file has the plain ...
2
votes
1
answer
1k
views
create new filetype with existing extension
I made a Qt application, let's call it "alpha," that opens and generates .zip files. So basically, my files created by the app have the extension .alpha but they are basically .zip files. How do I ...
0
votes
1
answer
2k
views
How to change file types?
I changed the permissions of some directories and the files within them, so now when I list them, most are highlighted green or have names that are green.
Some of the files used to be blue or white, ...
21
votes
1
answer
3k
views
How to set the default program to open a certain file type in a certain folder?
As well as being a Panda I am also an artist, I make my artwork mostly in GIMP and save my pictures to a certain directory on my computer. However I have a slight inconvenience because I save my ...
0
votes
1
answer
427
views
how to associate a file type "sh3d" with an application Sweet Home 3D?
I installed Sweet Home 3D from Ubuntu Software Center. Application is shown in a list of installed aplication and it could be run from launcher. Default file type of the program is ".sh3d". Ubuntu 14....
1
vote
1
answer
2k
views
how to associate a filetype with a program?
trying to associate .bluej files with bluej.
so i rightclick a bluej file ->properties ->open with
and here is the problem. it says:
"Select an application to open "pacjage.bluej" and other files of ...
5
votes
2
answers
2k
views
Prolog files recognized as Perl
Prolog .pl files are shown as Perl files, both in files browser and in Geany/Gedit syntax-highlighting. Is there a way to let it recognized Prolog files as non Perl files?
4
votes
2
answers
4k
views
How to set default program to open specific file type
I wish to set the default program to open .jpg files and other image files to GIMP. To do this as said in one of the answers here, I went into this section (Right-click > Properties > Open With):...
1
vote
2
answers
765
views
Cannot change association for mp4 video files to custom .desktop
I cannot set default association of mp4 and avi files to my custom desktop files. For mkv, I can change from nautilus file>properties>open with tab. This is a video of the peculiar behavior that I am ...
3
votes
2
answers
1k
views
Same file extension, but different "Type" in file properties!
I have two different files that have same file extensions: *.otf. But if I right click on these two files, Nautilus shows different "Type:" for them in file properties window: One is ODF template (...