The tag has no wiki summary.

learn more… | top users | synonyms

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
193 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
40 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 ...
16
votes
2answers
482 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
153 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 ...
0
votes
0answers
100 views

Error while Converting Excel to CSV using xls2csv

I am using xls2csv to convert a xls file into a regular .csv file. However, while using the command as xls2csv -c\, fromfile.xls > tofile.csv .I am getting the following error. Do not know what ...
1
vote
1answer
440 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
85 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
358 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
681 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, ...
4
votes
3answers
13k 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 ...
2
votes
2answers
126 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
239 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
91 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
605 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 ...
7
votes
2answers
5k 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?