开发者社区 问答 正文

Linux Shell中的basename指令的作用是什么?

Linux Shell中的basename指令的作用是什么?

展开
收起
游客k7rjnht6hbtk6 2021-12-03 19:05:46 1702 分享 版权
1 条回答
写回答
取消 提交回答
  • Linux Shell中的basename指令的功能:返回完整路径最后 / 的部分,常用于获取文件名 如,/home/文档/demo.txt 可获取demo.txt

    2021-12-03 19:06:00
    赞同 展开评论