How can I list all locked users in Linux?
usermod -L user_name
This command locks a particular user. Does Linux have any command that lists locked user?
(in case your interested)
Both of these illustrations demonstrate a very common technique that is used throughout Unix/Linux: what I'll call command piping.
In these examples, the output of one command (such as ls is "piped to" another command, which effectively filters its input and sends it down the line.
Refer to LinuxQuestions.org for more information.