File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
232
232
- [ Clear The Screen] ( zsh/clear-the-screen.md )
233
233
- [ Create A File Descriptor with Process Substitution] ( zsh/create-a-file-descriptor-with-process-substitution.md )
234
234
- [ Do Not Overwrite Existing Files] ( zsh/do-not-overwrite-existing-files.md )
235
+ - [ File Type Info With File] ( zsh/file-type-info-with-file.md )
235
236
- [ Find Newer Files] ( zsh/find-newer-files.md )
236
237
- [ Global Substitution On The Previous Command] ( zsh/global-substitution-on-the-previous-command.md )
237
238
- [ Hexdump A Compiled File] ( zsh/hexdump-a-compiled-file.md )
Original file line number Diff line number Diff line change
1
+ # File Type Info With File
2
+
3
+ Use the ` file ` utility to determine the type of a file:
4
+
5
+ ``` bash
6
+ $ file todo.md
7
+ todo.md: ASCII English text
8
+
9
+ $ file Hello.java
10
+ Hello.java: ASCII C++ program text
11
+
12
+ $ file Hello.class
13
+ Hello.class: compiled Java class data, version 52.0
14
+ ```
15
+
16
+ The ` Hello.java ` file isn't exactly a C++ program, but close enough.
You can’t perform that action at this time.
0 commit comments