In Linux, file types are not recognized by file extensions. It is actually determined by the data in a file. The file extension doesn't even matter.
If you run file command on any file, three sets of tests, performed in this order: filesystem tests, magic number tests and language tests to determine the file type.
Go over the file command manual for more information:
Please help! I am preparing a Linux Script to move windows executable files from samba directory to quarantine directory. For safety, will use "file" command to determine if its executable. Anyone can help? Below is my trial script, but it just move everything, including non-executable.. any wrong... (2 Replies)
Hi
I compiled an executable on Solaris 10 which creates semaphore ( semget)
but it didn't work on solaris 9 , while it is executing sucessfully on solaris 10. It is throwing the system error that Invalid arguments ( system error 22) on solaris 9.
the ldd for the executable on two servers is as... (4 Replies)
Hi ,
Could you please guide me how to remove formatting (bold text) in a unix file?
vi editor showing like this...
^
Cat command showing like this...
tl21ss01
tl21ss02
tl21ss03 (6 Replies)
Hi All,
I just want to know how to get the executable name of the perl script as i know "$0" will give me the script name but i want to know the executable name which i got it from the script using pp command.
Regards
Raj (1 Reply)
Hi,
I want to check the incoming files whether the file is Mac file or dos/windows file in unix shell script.
Sometimes client is posting Mac file and sometimes it is dos file. Could you please help me how to determine/check whether the file is Mac or dos.
Help in advance
Thanks (4 Replies)
Dear Experts,
I am an ERP consultant and would like to learn shell script. We are working on Linux SUSE 11.4 and I am very new to shell scripting. We can manually encrypt an excel file using "executable jar" through command prompt by placing the jar file & the file to be encrypted on a physical... (1 Reply)
Dear all,
I download a .exe file in my current folder called: ukbmd5.exe. I was told to run the command below: ukbmd5 ukb25278.enc to verify the integrity of the files that you have downloaded and the program ukbmd5 has been made available to assist with decrpying ukb25278.enc.
while when I run... (1 Reply)
Discussion started by: forevertl
1 Replies
LEARN ABOUT DEBIAN
missidentify
MISSIDENTIFY(1) Jesse Kornblum MISSIDENTIFY(1)NAME
missidentify - Find executable files without an executable extension
SYNOPSIS
missidentify [-rqablv] [-s|-S len] [-Vh] [FILES]
DESCRIPTION
Miss Identify looks at the header of every file it processes and determines if it is a PE executable (Windows executable). Such files can
include programs, device drivers, and DLLs. By default the program displays the filename if the extension of the file does not match one of
the known executable extensions (.exe, .com, .sys, or .dll). Other options can make the program display the filename of all executable
files.
-r Enables recursive mode. All subdirectories are traversed. Please note that recursive mode cannot be used to examine all files of a
given file extension. For example, calling missidentify -r *.txt will examine all files in directories that end in .txt.
-q Silent mode. All error messages except fatal errors are surpressed.
-a Display filenames of all executables
-b Enables bare mode. Strips any leading directory information from displayed filenames. This flag may not be used in conjunction with
the -l flag.
-l Enables relative file paths. Instead of printing the absolute path for each file, displays the relative file path as indicated on
the command line. This flag may not be used in conjunction with the -b flag.
-v Verbose mode. Displays the name of every 10th file as a progress indicator.
-s-S len
Prints strings of length len with each filename. With lowercase letter, puts filename before string. With uppercase letter, puts
strings before filename.
-h Show a help screen and exit.
-V Show the version number and exit.
BUGS
The program can be fooled by any file with more than 1024 bytes between the MZ header and the PE header.
AUTHOR
Miss Identify was written by Jesse Kornblum
http://missidentify.sf.net/
COPYRIGHT
Copyright (C) 2008 Jesse Kornblum. This is free software. You may redistribute copies of it under the terms of the GNU General Public
License version 2. There is NO WARRANTY. See the file COPYING for more details.
SEE ALSO file(1)Jesse Kornblum v1.0 - 20 Feb 2008 MISSIDENTIFY(1)