View the operations on your custom server
In this article we will explain how to display the current operation on your custom server through the SSH command line interface.
Steps to view current operations using the "top" command:
Step 1: Log on to a dedicated server via SSH as a root user.
Step 2: Through your shell instance, run the following command
[email protected] [~] # top -icd1
Step 3: After completion, you will see a list of the time the server arrived, the number of users currently logged in, the average number of downloads, as well as all data and information about running the tasks and CPUs.
top - 06:56:05 up 151 days, 20:42, 2 users, load average: 0.17, 0.23, 0.24
Tasks: 47 total, 1 running, 45 sleeping, 0 stopped, 1 zombie
Cpu (s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si, 0.0% st
Mem: 1572864k total, 1512676k used, 60188k free, 0k buffers
Swap: 2621440k total, 291720k used, 2329720k free, 1145668k cached
PID USER PR NI VIRT RES SHR S% CPU% MEM TIME + COMMAND
23607 user5 20 0 13004 1196 944 R 0.0 0.1 0: 01.37 top -icd1
Steps to view current processes using the "ps" command:
Step 1: Log on to a dedicated server via SSH as a root user
Step 2: Through the following command, you can see only all operations and run the command in your shell instance
[email protected] [~] # ps aux
Step 3: After that you will see all processes like this:
USER PID% CPU% MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 19236 516? Ss 2015 0:18 init
root 2 0.0 0.0 0 0? S 0:00 [kthreadd / 9198]
root 3 0.0 0.0 0 0? S 0:00 [khelper / 9198]
dbus 774 0.0 0.0 21436 72? Ss 2015 0:00 dbus-daemon --system
root 1013 0.0 0.2 100892 4388? Ss 06:40 0:00 sshd: user5 [priv]