1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-06 00:28:01 +00:00

Add File Type Info With File as a zsh til.

This commit is contained in:
jbranchaud
2015-10-04 13:25:51 -05:00
parent 18b33f1656
commit 0eaffb7269
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# File Type Info With File
Use the `file` utility to determine the type of a file:
```bash
$ file todo.md
todo.md: ASCII English text
$ file Hello.java
Hello.java: ASCII C++ program text
$ file Hello.class
Hello.class: compiled Java class data, version 52.0
```
The `Hello.java` file isn't exactly a C++ program, but close enough.