The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
25 views

Extract TOC of epub file

Lately I hit the command that will print the TOC of a pdf file. mutool show file.pdf outline I'd like to use a command for the epub format with similar simplicity of usage and nice result as the ...
0
votes
2answers
39 views

What is the unix mailbox format?

man git-format-patch makes reference of the UNIX mailbox format which is a term I am unfamiliar with. A google search for "UNIX mailbox format" and similar expressions lists many hits with the term ...
1
vote
3answers
104 views

Why 'cat' can't read content of pdf files?

When tried the command cat < 1.pdf it printed a very large output, which was totally incomprehensible to me. The content of 1.pdf was abc. The output was like this: ...
1
vote
1answer
65 views

Converting column data to matrix

I am trying to create a matrix of plant traits and plant species. There are 2,912,746 rows in the data and 3 columns. There are different numbers of traits for each species, and not every species has ...
2
votes
1answer
677 views

How can I correctly decompress a ZIP archive of files with Hebrew names?

(Question self-migrated from superuser.com) Someone sent me a ZIP file containing files with Hebrew names (and created on Windows, not sure with which tool). I use LXDE on Debian Stretch. The Gnome ...
0
votes
0answers
30 views

Tips for parsing proprietary file formats?

So I got a quarkxpress file. The problem is, it confidential, so I can't upload here. In general, given some proprietary file format, what steps can you take to recover data from it in linux? I have ...
2
votes
0answers
42 views

Command like `column -t` but encoding-type agnostic? [closed]

Essentially, I am looking for an encoding-type agnostic version of the column -t command in linux. I need to convert delimited files to flat and then write to an outfile. The specific delimiter ...
1
vote
0answers
43 views

How to extract text out of QuarkXPress file in linux?

Is there a way to extract the text from QuarkXPress? (Preferably, I would not want to use QuarkXPress itself, but free software compatible with it.)
2
votes
1answer
68 views

To which files does the key stroke and mouse click data go first and what form they have?

I want to know which files belong to keystrokes and mouse clicks, and what kind of data is sent to them. My main purpose of asking this question is key logging. I want to write a key logger script ...
1
vote
1answer
190 views

How to get the structure of a GDBM database

Modem Manager GUI creates a database named sms.gdbm to store all the SMS details. Currently Modem Manager GUI is not providing a feature to simply delete all received/sent messages. So I'm trying ...
0
votes
1answer
927 views

NTFS formatting disabled while using Gparted in CentOS 7

I am using GParted for formatting my usb-device(a pendrive). And, I unmounted my device using the GUI program itself. The device doesn't show mounted anymore. When I try to format my ...
0
votes
1answer
262 views

How to reduce the size of an mpeg file using the command line ?

I have a file, the output of the file command displays: jeff_western2.mp4: ISO Media, MPEG v4 system, version 1 I do not know how to lookup the resolution but it looks quiet high, the file itself ...
1
vote
1answer
199 views

XML Microsoft Word Document

I have a .xml file generated by someone with MS Word and I cannot manage to open it with LibreOffice or other app or change its format. I tried to save a LibreOffice document as "Word 2003 xml" and ...
0
votes
0answers
123 views

Why are my USB flash drives not working well under Linux and Windows?

Let me explain my question better: I am a Linux user (Fedora 20) and regularly need to use USB flash drives to carry files I will need to open in Windows computers in College, and the other way ...
0
votes
1answer
121 views

hard drive formatted while Linux setup, lost partitions

I have installed Ubunto 14.04 on sda1. but after the installation finished, all the partitions are gone . I have important data on sda5 , and when I run the following command : sudo fdisk -l in the ...
1
vote
1answer
625 views

convert *.po file to *.pot

I need to convert *.PO file (binary gettext file), and I need to convert it to *.POT file(source gettext file), I did it via : msgfilter -i my pofile.po -o mypot.pot true But it didn't generate my ...
1
vote
1answer
674 views

How to format a microSDXC card into Fat32?

I need to format a brand new Micro SD card of extended capacity into Fat32. I've read that formatting SD cards of 64/128GB requires special tools. So I'm asking: How can I format in my Linux machine a ...
7
votes
2answers
384 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
685 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
69 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
2answers
124 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) ...
8
votes
4answers
3k 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
2k 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
1k 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
115 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 ...
19
votes
2answers
806 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
562 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
3k 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
155 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
703 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
1k 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, ...
8
votes
5answers
34k 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
276 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
408 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
97 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 ...
4
votes
1answer
938 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 ...
22
votes
4answers
16k 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?