리눅스 basename

(Basename에서 넘어옴)

1 개요[ | ]

리눅스 basename
/bin/basename
[root@localhost ~]# basename /etc/httpd/conf/httpd.conf 
httpd.conf
[root@localhost ~]# basename /etc/issue.net
issue.net
[root@localhost ~]# basename /etc/issue.net .net
issue
[root@localhost ~]# basename /etc/httpd/conf/httpd.conf .conf
httpd
[root@localhost ~]# basename /etc/httpd/conf/httpd.conf conf
httpd.
[root@localhost ~]# basename /etc/httpd/conf/httpd.conf onf
httpd.c
[root@localhost ~]# basename /etc/httpd/conf/httpd.conf .txt
httpd.conf
[root@localhost ~]# basename /etc/httpd/conf/
conf
[root@localhost ~]# basename /etc/httpd/conf
conf

2 같이 보기[ | ]

3 참고[ | ]

  1. 또는 최하위 폴더
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}