πŸ“Š Linux
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Returns the file name from a path

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

Explanation by: Mr. Dubey
'basename /path/to/file' outputs 'file'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
47
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate