Академический Документы
Профессиональный Документы
Культура Документы
The "which" command searches your PATH setting for occurrences of the specified
executable.
File Permissions
The "umask" command can be used to read or set default file permissions for the
current user.
OS Users Management
The "passwd" command is used to set, or reset, the users login password.
root> who
root> who | head -5
root> who | tail -5
root> who | grep -i ora
root> who | wc -l
The "head -5" command restricts the output to the first 5 lines of the who command.
The "tail -5" command restricts the output to the last 5 lines of the who command.
The "grep -i ora" command restricts the output to lines containing "ora".
The "wc -l" command returns the number of lines from "who", and hence the number of
connected users.