For the last couple of days, I've woken up to find rsync churning away with 1.6GB of memory, slowing my Mac down significantly. Activity Monitor only says that rsync is coming from sh, but I'm trying to track down more info; specifically, what shell script is calling rsync. How can I find that out?

  • 2
    I blame the Mayans.
    – EEAA
    Dec 12, 2012 at 15:24

1 Answer 1


It's simple. Use the ps command to check the parent of the rsync process, something like this.

Use this command

# ps -ef | grep rsync

This will give you the process ID of the rsync script. This will also give the process id of the parent script which is running that rsync process.

Then use this command

# ps -ef | grep parent_process_id

This will tell you the name of the script which is running the rsync script.

Hope this helped.

Not the answer you're looking for? Browse other questions tagged .