How to pipe some file names to rm, here is the solution: $ ls | xargs rm 转载于:https://www.cnblogs.com/unimous/archive/2012/10/20/2731936.html