Unix

Top command in Unix

Top is a basic Unix command which is very useful for observing the current state of your Unix system, by default presenting you the list of top users of your system's resources – CPU shares and memory.
      The top program provides a dynamic real-time view of a running system. The types of system summary information shown and the types, order and size of information displayed for tasks are all user-configurable.
The syntax for the top command is

The options are
  • -b:Starts top in 'Batch' mode, which could be useful for sending output from top to other programs or to a file
  • -c:Command-line/Program-name toggle
  • -d:Specifies the delay between screen updates
  • -H:Instructs top to display individual threads
  • -n:Number of iterations
  • -p:Monitor only processes with specified process IDs 
  • -s:Starts top with secure mode forced, even for root
  • -u:Display only processes with a user id or user name matching that given






Powered by Blogger.