Linux [Electronic resources]

Janet Valade

نسخه متنی -صفحه : 357/ 268
نمايش فراداده

basename (display filename only)

Removes the path from a complete filename. Can also remove the extension name.

Format: basename

path/filename Examples: basename /home/janet/file1.txt basename /home/janet/file1.txt .txt

First example displays file1.txt. The second example displays file1.