• Home
  • Cloud
  • Big Data
  • CI
  • Install
  • Samples
  • Java
  • Ubuntu
  • Maven
  • Archive
Linux-Ubuntu | file -- display file type
  1. Notes
  2. Examples
  3. Command Help (man file)

  1. Notes
    Usage:

    The command file can be used to determine the file type and its character encoding.
  2. Examples
    • Display file type:



      You can use the option -i to display mime type and encoding of the file:

      You can also use the command file to display the file type of an executable binary file (display the OS information and the libraries the executable requires):

  3. Command Help (man file)
    The following options can be used:
© 2010-2022  mtitek