nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to know or determine Linux filetype

This is a discussion on How to know or determine Linux filetype within the Getting started tutorials forums, part of the Linux Getting Started category; Linux has command line and it has tens and thousands of files. How do I know file type? Answer is ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 01-18-2007, 04:23 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 151
Rep Power: 4
raj is on a distinguished road
Default How to know or determine Linux filetype

Linux has command line and it has tens and thousands of files. How do I know file type?

Answer is quite simple use file command to determine file type.
Code:
file file-name
Code:
file xyz.c
zyx.c: C program text

Code:
file /dev/hda
/dev/hda: block special (3/0)

Code:
file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared lib, stripped

Code:
file /etc
/etc: directory

Have a fun!
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 09:38 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36