See common Linux Command for syntax and example, this can be used as quick reference while programming the shell.