Moving all files Except one or few. You may come to situation where you have to move file from current folder to some where else. But you also don't want to move all files. Here is how you can do it. $ mv $(ls | grep -v exceptfile.any) ~/destinationfolder/ for Multiple files: $ mv $(ls | grep -v 'exceptfile.any\|exceptfile2.any') ~/destinationfolder/ There could be case your destination folder is current directory. As you will encounter error: mv: cannot move 'destinationfolder' to a subdirectory of itself, 'destinationfolder/destinationfolder' For this you add the destinationfolder in grep parameter as well: $ mv $(ls | grep -v 'exceptfile.any\|exceptfile2.any\|destinationfolder') ~/destinationfolder/ This will work. But incase re-run this command you like to hit output: mv: missing destination file operand after 'developer_survey_2020' Try 'mv --help' for more information. The above out can be overlooked as its correct since there...