streak 0d sign in / up

Command Line · Lesson 6 of 19

file

0%

0 / 4 checkpoints answered

Virtual Machine Standing by
✓ Setting up Virtual Machine…
✓ Initializing Virtual Machine…
✓ Starting Desktop Services…
✓ Connecting to Interface…

Click inside the terminal, type the command, press Enter.

In the previous lesson, you used touch to create a file without adding an extension. Linux filenames do not have to describe what a file contains: a file named funny.gif is not necessarily a GIF image.

Use the file command to inspect a file and report its likely type:

$ file banana.jpg
banana.jpg: JPEG image data