Difference between revisions of "Centos File System Commands"

From rbachwiki
Jump to navigation Jump to search
(Created page with "'''File Command displays type of file''' file me.text #output ASCII text")
 
Line 3: Line 3:
  #output
  #output
  ASCII text
  ASCII text
'''Wildcard Metacharacters '''
<pre>
* Matches 0 or more characters in a filename
? Matches 1 character in a filename
[aegh]  Matches 1 character in a filename—provided this character is either an a, e, g, or h
[a-e]  Matches 1 character in a filename—provided this character is either an a, b, c, d, or e
[!a-e] Matches 1 character in a filename—provided this character is NOT an a, b, c, d, or e
</pre>

Revision as of 20:32, 27 January 2019

File Command displays type of file

file me.text
#output
ASCII text

Wildcard Metacharacters

* Matches 0 or more characters in a filename
? Matches 1 character in a filename
[aegh]  Matches 1 character in a filename—provided this character is either an a, e, g, or h
[a-e]  Matches 1 character in a filename—provided this character is either an a, b, c, d, or e
[!a-e] Matches 1 character in a filename—provided this character is NOT an a, b, c, d, or e