Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how many types of file in unix?

Answer Posted / sree ranjini

The file is the basic unit of the UNIX System.There are 3
main categories though in some text books symbolic
links/all special files are splitted and written as
seperate file type(It doesnt matter to whether there are 3
or 4 or 7 file types)

1.Regular files(-) -> includes text files + binary + image
files
2.Directory files(d)
3.Special files
3.1 Device Files
3.11 Character special devices(c)
3.12 Block special devices(b)
3.2 Links
3.21 Hard Links(really not a kind of file but
instead is a second name for a file.Seen as - regular
file type on ls -l)
3.22 Symbolic Link( l )
3.3 Socket(s)
3.4 Fifo ( p )

How to see the file type? simply type ls -l
text,binary are all seen as regular files.How do I get the
type->use file command -> eg $file * lists all file type in
curr dir.

REGULAR FILES( _ )
var/run/syslogd.pid: ASCII text
-rw-r--r-- 1 root root 5 2009-06-19
12:06 /var/run/syslogd.pid

$ile reciprocal
reciprocal: ELF 64-bit LSB executable, x86-64, version 1
(SYSV), for GNU/Linux 2.6.8, dynamically linked (uses
shared libs), not stripped

Directory( d )
/dev/net: directory
drwxr-xr-x 2 root root 60 2009-01-13 20:02 net

/dev/fd: symbolic link to `/proc/self/fd'
lrwxrwxrwx 1 root root 13 2009-06-19 12:06 fd -
> /proc/self/fd

/dev/mem: character special
crw-r----- 1 root kmem 1, 1 2009-06-19 17:35 mem

/dev/loop0: block special
brw-rw---- 1 root disk 7, 0 2009-01-13 20:02 loop0

/dev/log: socket
srw-rw-rw- 1 root root 0 2009-06-19 12:06 log

/dev/initctl: fifo (named pipe)
prw------- 1 root root 0 2009-06-19 12:06
initctl

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's a command word?

1170


Explain how to use grep command to list find the records of a file containing 10 different strings?

1065


What is grep and how do you use it?

1104


How can we use grep command in unix?

1203


What is the use of the command 'ls -x chapter[1-5]' ?

1212


Enlist some filename manipulation commands in unix.

1156


Why is awk called awk?

1068


Explain the steps that a shell follows while processing a command.

1226


Why is it called grep?

1026


Is ‘du’ a command? If so, what is its use?

1145


Explain command to show the space allocation of files?

1118


What is grep short for?

1045


Name the general commands in using unix os for a beginner?

1153


What difference between cmp and diff commands?

1296


How do I open a port?

1081