List all users in /Users folder

Quick one-liner for bash:
for user in `ls /Users/`; do if [ $user == “Shared” ]; then continue; fi; echo $user; done

This article was posted by Kai Howells. If you liked this content and have any technical work in the Melbourne area, say hello via my contact form or give me a call on 0419 361 653 - I cover most of the greater Melbourne area and my rates are competitive.

Leave a Reply

Your email address will not be published. Required fields are marked *