新聞中心
basename命令怎么在Linux中使用?針對這個問題,這篇文章詳細(xì)介紹了相對應(yīng)的分析和解答,希望可以幫助更多想解決這個問題的小伙伴找到更簡單易行的方法。
該命令的幫忙信息如下:
NAME
basename - strip directory and suffix from filenames
SYNOPSIS
basename NAME [SUFFIX]
basename OPTION
即basename的作用是從文件名中去除目錄和后綴,有如下例子:
1.執(zhí)行basename kernel/include/linux/或basename kernel/include/linux得到linux
2.執(zhí)行basename kernel/include/linux/stddef.h得到stddef.h
3.執(zhí)行basename kernel/include/linux/stddef.h .h得到stddef
4.執(zhí)行basename kernel/include/linux/stddef.h h得到stddef.
5.執(zhí)行basename kernel/include/linux/stddef.h .得到stddef.h
關(guān)于basename命令怎么在Linux中使用問題的解答就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,如果你還有很多疑惑沒有解開,可以關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道了解更多相關(guān)知識。
本文題目:basename命令怎么在Linux中使用-創(chuàng)新互聯(lián)
本文地址:http://www.ef60e0e.cn/article/coopgd.html