copy all files except one in linux code example Example: linux cp everything except $ cp -r !(dir2) /home/sk/backup/