I would like to know the command to delete the one with the extension of 2 characters or more on linux.
Also, what should I do if the beginning is ANDed with abc or xyz?

It's wrong, but I think it looks like rm (abc * || xyz *)&&(2 characters extension) ...
We would appreciate it if you could teach us various things such as beginners.

  • Answer # 1

    It's scary if you suddenly rm and disappear by mistake, so it's a good idea to check if the following command targets are correct.
    If there is no problem, change ls to rm and the file will disappear.

    ls {abc, xyz} *. ?? *

    * Is any string of 0 or more characters
    ? Is any one character
    Will be.

    I will also describe the reference URL.
    Link content