I recently installed a fresh CentOS 7.1 server. I'm noticing a few differences from CentOS 6.7, and I'm hoping there is a way to revert to an old view of certain things.
For example:
Question 1: top
The Top command displays data differently. For example:
New Top View:
top - 00:27:45 up 4:58, 1 user, load average: 0.08, 0.50, 0.89
Tasks: 155 total, 2 running, 153 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 1.1 sy, 0.0 ni, 98.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 4047624 total, 1938600 free, 853888 used, 1255136 buff/cache
KiB Swap: 4194300 total, 4194300 free, 0 used. 2860704 avail Mem
Old Top View:
top - 00:28:59 up 22:49, 1 user, load average: 0.19, 0.21, 0.24
Tasks: 157 total, 1 running, 156 sleeping, 0 stopped, 0 zombie
Cpu(s): 17.9%us, 1.0%sy, 0.0%ni, 80.9%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4055052k total, 3456240k used, 598812k free, 584160k buffers
Swap: 4194296k total, 191184k used, 4003112k free, 1076124k cached
Is there any way to display the memory and stats using the old format?
Question 2: service
Command
With Centos 6.7, if I did something like service httpd restart
, it would give me an OK
or Failure
message. CentOS 7.1 doesn't seem to do that.
Old view:
# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
New view:
# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Is there any way to go back to the old view? I realize this is somewhat trivial, but there have been plenty of times where a service wasn't already started, or would not stop for some reason. The message status is a nice way to see that.