A

Admin • 833.24K Points
Coach

Q. What does the 'basename' command do?

  • (A) Returns the file name from a path
  • (B) Returns the directory name
  • (C) Lists files in a directory
  • (D) Prints the full file path
  • Correct Answer - Option(A)
  • Views: 27
  • Filed under category Linux
  • Hashtags:

Explanation by: Admin

'basename /path/to/file' outputs 'file'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.