Professional Documents
Culture Documents
OSG Lab2
OSG Lab2
Class: SE1814
man
Examples:
man ls - Displays the manual page for the "ls" command, providing information on how
to use it and its options.
man grep - Shows the manual page for the "grep" command, explaining how to search
text using regular expressions.
who
Syntax: who
Examples:
who - Shows a list of currently logged-in users, along with information about their
sessions.
Examples:
date - Displays the current date and time in the default format.
date "+%Y-%m-%d %H:%M:%S" - Formats and displays the date and time as "YYYY-MM-
DD HH:MM:SS.
top
Syntax (top): top
Purpose (top): Display real-time system information and processes.
Examples:
top - Opens a real-time system monitoring tool showing CPU, memory, and process information.
su
Syntax:
su [options] [username]: Switch user or superuser.
Examples:
kill
Syntax:
Examples: