Multiple choice technology operating systems

How to strip off the extension from file name

  1. extrm

  2. basename

  3. strip -ext

  4. rm -ext

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The basename command in Unix-like systems strips the directory path and can remove file extensions using the suffix option. It's the standard utility for filename manipulation.