H I O X INDIA
LINUX Commands
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

LINUX / UNIX cmd
Introduction
Commands in A
Commands in B
Commands in C
Commands in D
Commands in E
Commands in F
Commands in G
Commands in H
Commands in I
Commands in J
Commands in K
Commands in L
Commands in M
Commands in N
Commands in P
Commands in R
Commands in S
Commands in T
Commands in U
Commands in W
Commands in Y
More about Linux
Feedback




file Linux Commands


Topic

What is Linux file Command?




Explanation

file COMMAND:
     file command tells you if the object you are looking at is a file or a directory.

SYNTAX:
  The Syntax is
     file [options] directoryname/filename

OPTIONS:
     
-c Check the magic file for format errors. For reasons of efficiency, this validation is normally not carried out.
-h Do not follow symbolic links.
-m Use mfile as an alternate magic file.
-f ffile contains a list of the files to be examined.



EXAMPLE:
     
  1. file *.txt
    Output:
    aprlist.txt:   ASCII English text
    cal.txt:       ASCII text
    marchlist.txt: ASCII English text
    text.txt:      ASCII text
    

    Prints the 'txt' files.

  2. file nimi
    Output:
    nimi: directory
    

    Print the given object nimi is an directory or file.






        Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Other Links