Encyclopedia > Basename

  Article Content

Basename

basename is a common program found on Unix systems. Given a pathname[?], it will return the name of the file that the pathname refers to. For example, basename /home/john/pictures/cat.jpg will return "cat.jpg". Although this seems fairly obvious to humans, basename is a useful tool in shell scripts.

See also: List of Unix programs



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Wheatley Heights, New York

... 3.67. In the town the population is spread out with 30.3% under the age of 18, 8.1% from 18 to 24, 29.9% from 25 to 44, 23.8% from 45 to 64, and 7.9% who are 65 years of ...

 
 
 
This page was created in 24.8 ms