1828490 Members
2560 Online
109978 Solutions
New Discussion

finding file types

 
SOLVED
Go to solution
Nshenba
Occasional Advisor

finding file types

how to find the file types in 11.23
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: finding file types

Hi:

What are you looking to do or find?

Perhaps you want:

# file <>
...which gives you a 'magic' interpretation of what a file's contents appear to be.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: finding file types

HI (again):

...of course, if you mean 'type' as in 'find()' then see the manpages for 'find' under the '-type' option.

Regards!

...JRF...
Sajjad Sahir
Honored Contributor

Re: finding file types

file is the command
once u type file filetype then it will tell
which type.

thanks and regards

Sajjad Sahir
Nshenba
Occasional Advisor

Re: finding file types

i want to know the file system is whether NFS or HFS or vxfs, so can anyone tell what is the command
sujit kumar singh
Honored Contributor

Re: finding file types

hi

you can well refer to man pages of command find, on your system.

#man find

see details of the option
-type -- for finding type of files
-fstype -- for fstype you want to find

regards
sujit
sujit kumar singh
Honored Contributor

Re: finding file types

hi


you can tell for a filesystem as HFS or VXFS using the fstyp -v command


#bdf

get the device file as in the first column of the O/p.

then for exapmle
#fstyp -v /dev/vg00/lvol1

this shall show if that is HFS or VXFS.

#bdf and #mount also shall show if a FileSystem is mounted as an NFS FileSystem from some NFS server.
regards
sujit
Vivek Bhatia
Trusted Contributor
Solution

Re: finding file types

>>i want to know the file system is whether NFS or HFS or vxfs, so can anyone tell what is the command

Run the below command and it will show you the information regarding the filesystem(HFS or Vxfs).
#fstyp -v /dev/vg00/lvol3
vxfs
version: 5
f_bsize: 8192
f_frsize: 8192
f_blocks: 65536
f_bfree: 16088
f_bavail: 16088
f_files: 10272
f_ffree: 1087904584

subodhbagade
Regular Advisor

Re: finding file types

Hi,

>how to find the file types

# file file name ( it will give the type like ascii, text etc...)


>i want to know the file system is whether NFS or HFS or vxfs,

#fstyp -v lv name or

#df -g /mount point ( it will give the fs type, block size ....if f_flag: 16 or 0x10 flags which mean it support large file more than 2 Gb)


Regards,
Subodh
Sunny123_1
Esteemed Contributor

Re: finding file types

Hi

>i want to know the file system is whether NFS or HFS or vxfs,

#fstyp -v lv name

or you can also see in /etc/fstab

more /etc/fstab

Regards
Sunny
Fredrik.eriksson
Valued Contributor

Re: finding file types

typing just 'mount' will display that also

Best regards
Fredrik Eriksson
hsihsa
New Member

Re: finding file types

for simple uses

#ls -F

see man ls for option -F