Files deleted with the RM command are not put into the Trash, so they cannot be recovered using the Terminal tool. In this case, you can try Stellar Data Recovery for Mac, but it is not necessarily 100% sure that deleted files can be recovered.