I downloaded a directory of files, directory.1containing the filesfile.1file.2file.3I move file.2 bymv file.2 ../another.directory &My problem is I want to get rid of directory.1 and the contents but I have to wait for my job to finish.  Is there a way around this?  Or a quick way to do a..rm -r directory.1triggered when my mv job is finished?edit:  to be clear...  the file I'm moving is ~1GB to another device.  So can take a few minutes.
How can you move a file as a background job and delete all other files and the directory before waiting for the job to finish?
rm;mv;jobs
You can just aggregate the two commands with &&:cd ..mv directory.1/file.2 another.directory && rm -r directory.1 &