The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What kind of Linux for the newbies? sanlen UNIX for Dummies Questions & Answers 2 10-01-2007 12:38 PM
Script to check for a file, check for 2hrs. then quit mmarsh UNIX for Dummies Questions & Answers 2 09-16-2005 02:46 PM
Kind of weird question Cyberaxe UNIX for Dummies Questions & Answers 2 07-26-2005 05:19 PM
what kind of UNIX hiei UNIX for Dummies Questions & Answers 2 04-12-2004 07:15 PM
Some kind of message command sanjit UNIX for Dummies Questions & Answers 3 12-14-2000 10:45 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-19-2008
Sunb3 Sunb3 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 39
How to check the kind of file

Hi all,

I'm working on Solaris 10 and I have to install some packets in which there are files of different kind. In this situation I need to know a command of UNIX/Solaris to check the kind of file.

For example how can I know if the file has ISO or ASCII or BER or HEX format?

Thank you very much!!!
  #2 (permalink)  
Old 08-19-2008
palsevlohit_123 palsevlohit_123 is offline
Registered User
  
 

Join Date: Aug 2008
Location: India-Chennai
Posts: 120
can you use

$file <your_file_name>
  #3 (permalink)  
Old 08-19-2008
Sunb3 Sunb3 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 39
Thanks but I just used this command, I need a command which gives more information about the file.

Do you know another command?
  #4 (permalink)  
Old 08-19-2008
palsevlohit_123 palsevlohit_123 is offline
Registered User
  
 

Join Date: Aug 2008
Location: India-Chennai
Posts: 120
can you give some more details regarding your requirement. wat you want to do after finding the file format? if any decision making needed then we can go further....?
  #5 (permalink)  
Old 08-19-2008
Sunb3 Sunb3 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 39
Ok...with "file" command I can check if the file is ISO or ASCII etc...but I cannot check if this file is coded HEX or BER or mixed, isn't true?

I can use the "od -(options)" command also, but I transform the input file in another output kind of file.

So...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0