Running the find command as a background process

dfad123

New Member
Joined
Jul 26, 2021
Messages
8
Reaction score
0
Credits
78
Hello, I am trying to find all files changed in the last 3 days as a background process using the following command - "find / -mtime -4 &" but it seems to ignore the &.

Can anyone tell me how to run the find command as a background process?

Any help is appreciated.

Thank you

Dan
 


Well, you could do "`find / -mtime -4` &" (no quotes, use the back-tick character before "find" and after -4) and the process will run in the background, but the output will still spew to your console.

To resolve that, you can pipe the output into a file.

`find /usr -mtime -4 > output.txt` &

The last back-tick being after output.txt instead of after the -4.

Dave
 

Members online


Latest posts

Top