Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FSTYP(8)		  BSD System Manager's Manual		      FSTYP(8)

NAME
     fstyp -- determine	filesystem type

SYNOPSIS
     fstyp [-l]	[-s] special

DESCRIPTION
     The fstyp utility is used to determine the	filesystem type	on a given de-
     vice.  It can recognize ISO-9660, Ext2, FAT, NTFS,	and UFS	filesystems.
     The filesystem name is printed to the standard output as, respectively,
     cd9660, ext2fs, msdosfs, ntfs, or ufs.

     Because fstyp is built specifically to detect filesystem types, it	dif-
     fers from file(1) in several ways.	 The output is machine-parsable,
     filesystem	labels are supported, the utility runs sandboxed using
     capsicum(4), and does not try to recognize	any file format	other than
     filesystems.

     These options are available:

     -l	 In addition to	filesystem type, print filesystem label	if available.

     -s	 Ignore	file type.  By default,	fstyp only works on regular files and
	 disk-like device nodes.  Trying to read other file types might	have
	 unexpected consequences or hang indefinitely.

EXIT STATUS
     The fstyp utility exits 0 on success, and >0 if an	error occurs or	the
     filesystem	type is	not recognized.

SEE ALSO
     file(1), capsicum(4), glabel(8), mount(8)

HISTORY
     The fstyp command appeared	in FreeBSD 11.0.

AUTHORS
     The fstyp utility was developed by	Edward Tomasz Napierala
     <trasz@FreeBSD.org> under sponsorship from	the FreeBSD Foundation.

BSD			       January 14, 2015				   BSD

NAME | SYNOPSIS | DESCRIPTION | EXIT STATUS | SEE ALSO | HISTORY | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=fstyp&sektion=8&manpath=FreeBSD+10.2-RELEASE>

home | help