copy last file from directory 09/02/201909/02/2019 nickollas Shell Script copy last file created on /usr/bin to /tmp ls -trd /usr/bin/* | tail -1 | xargs -I% cp -P % /tmp Share this:ShareEmailPrintFacebookWhatsAppLike Loading... Related