The tag has no wiki summary.

learn more… | top users | synonyms

7
votes
1answer
136 views

file(1) and magic(5) : describing other formats

Can I use file and magic ( http://linux.die.net/man/5/magic ) to override the description of some other known formats ? for example, I would like to describe the following formats: BED: ...
0
votes
2answers
107 views

File command database and identifying text files

Please let me know if below two statements are correct or not: Folder /usr/share/mime/magic has a database/table that will give me what are the current possible file formats (outputs that I can get ...
-1
votes
2answers
45 views

Reading file with different formats [duplicate]

I am a new user to Linux. I have several files and documents in my directory and sometimes when I want to read or display data in these files, I do not know which command I need to type for this ...
1
vote
1answer
67 views

cat combining not all file formats - but which ones?

In GNU⁄Linux, combining files with cat works in miraculous ways – at least for me: cat part_* > /destination/file.xyz with the same file format for BOTH source and target file(s) ...
6
votes
4answers
487 views

Linux file command classifying files

I need to recognize type of data contained in random files. I am new to Linux. I am planning to use the file command to understand what type of data a file has. I tried that command and got the ...
9
votes
6answers
1k views

When are spaces around the = sign forbidden?

I know that in ~/.bashrc one must not put spaces around = signs in assignment: $ tail -n2 ~/.bashrc alias a="echo 'You hit a!'" alias b = "echo 'You hit b!'" $ a You hit a! $ b b: command not ...
5
votes
1answer
369 views

How could I restrict directory content by file type?

Is there a way to restrict directory content by the file type? For example, I have an upload directory that I only want users to put images in, could I go a step further & actually put a ...
3
votes
1answer
55 views

Test for a particular file format

This is a followup to Normal looking text file, detected by file as ASCII Pascal program text It seems file can't be trusted all the time. It seems possible that a particular file may be detected ...
17
votes
2answers
556 views

What does “magic tests” mean for the file command?

I was reading about the file command and I came across something I don't quite understand: file is designed to determine the kind of file being queried.... file accomplishes this by performing ...
1
vote
2answers
228 views

Unable to do head or tail for a file

I have a .CSV file which upon passing the file test_file.csv command gives the output as: test_file.csv: ISO-8859 English text, with CR line terminators When I am using cat, head or tail command on ...
1
vote
1answer
715 views

How to format a USB storage no detected in Ubuntu?

I have a memory stick that is not mounted in Ubuntu and it doesnt works in Windows. I can check is connected using Bus 003 Device 011: ID 05e3:0727 Genesys Logic, Inc. microSD Reader/Writer But I ...
0
votes
1answer
92 views

Are .so files in Fedora considered ELF files?

ELF 'Executable and Linkable Format' So if I generate Shared Object files .so are those considered ELF files?
2
votes
1answer
441 views

Detect file-type with the help of magic-file and rename file-suffix accordingly

I have a folder (the iPhone Backup) with various files without a suffix. I want to run a batch process over these files, which detects each file's file-type (with the help of the magic-file database ...
5
votes
2answers
810 views

More sophisticated file command for deep inspection?

Sometimes it seems that the standard file command (5.04 on my Ubuntu system) is not sophisticated enough (or I am just using it wrong, which could well be). For example when I run it on an .exe file, ...
7
votes
4answers
16k views

How to read Word .doc files?

How can we read Microsoft Word (.doc) files in a Linux system? It doesn't support .doc files. I tried strings filename.doc | less but it gives ugly output. Any other option? I would prefer a ...
3
votes
2answers
155 views

Different formats of object files in Linux

I was wondering what are some formats of object files in Linux? There are two types of object files that I know: executable, which has ELF format object files that are generated by gcc after ...
4
votes
2answers
275 views

Sometimes I feel like a directory, some times I feel like a regular file

For organizational purposes I would like a certain filesystem object which most of the time appears as a file, on occasion, to appear as a directory. The basic idea is that generically for cp, mv, ...
4
votes
1answer
92 views

IANA image format string from binary stream

How can I get the official IANA Image Media Type (if any) of a binary stream? I'd like to avoid trusting to file extensions and vague guesses when handling images. Preferably some command using common ...
3
votes
1answer
670 views

More doubts in bzImage

The description of the bzImage in Wikipedia is really confusing me. The above picture is from Wikipedia, but the line next to it is: The bzImage file is in a specific format: It contains ...
10
votes
2answers
6k views

What is the difference between the following kernel Makefile terms: vmlinux, vmlinuz, vmlinux.bin, zimage & bzimage?

While browsing through the Kernel Makefiles, i found these terms. So i would like to know what is the difference between vmlinux, vmlinuz, vmlinux.bin, zimage & bzimage?