linux system functions basename and dirname

     Such systems have two functions, basename and dirname system in linux 

1, basename to get the file name,

  

 

   1.1 When a given extension as a parameter, or even directly filename

   

 

 2, the dirname basename corresponding path to the file is acquired, ha;

  

 

   

  linux is a magical system.

Guess you like

Origin www.cnblogs.com/SliverLee/p/11441140.html