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:
16
zsh/file-type-info-with-file.md
Normal file
16
zsh/file-type-info-with-file.md
Normal 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.
|
||||
Reference in New Issue
Block a user