On reboot the server time can be out of sync, because hard clock is out of sync. This can be checked by running”hwclock; date” and comparing the results. In Red Hat 6, the ntpdate start-up script is is separate from…
Tag: administration
How to get CORRECT memory usage for Linux
One of the most common mistakes made by Linux users, is to run free (Mem: line) or sar to get memory utilization. The memory used fields include the space used by the OS to cache files and directory info cace,…
Windows system info
To get window system info run systeminfo To get just OS info: systeminfo | findstr /C:”OS” OS Name: Microsoft Windows Server 2008 R2 Enterprise OS Version: 6.1.7601 Service Pack 1 Build 7601 OS Manufacturer: Microsoft Corporation OS Configuration: Member Server…
Backing Up WordPress Database
To use command line backup of a WordPress site. Locate you wp-config.php file. Find the DB configuration for you DB with “grep DB_ wp-config.php”. If your password is encrypted, you will need to know it. Use the output to run…
Sar Grapher Updated
Sar Grapher has been updated. It now graphs Linux NFS Server performance data.
Sargrapher Now Graphs Total CPU time
Sar grapher now displays graphs of total CPU time used. This makes it more obvious of combination of user, system, I/O wait.
Quering Oracle DB version
select * from sys.v_$version;
Lunix Core Files
To enable core file generation.. Configure core files to use the PID as a extension. Set “kernel.core_uses_pid = 1” in /etc/sysctl.conf and run “/sbin/sysctl -p /etc/sysctl.conf: or to add it temporarily run “/sbin/sysctl -w kernel.core_uses_pid=1” to change the running kernel. …
Listing Full RPM Package Name
To get a full list RPM name, like the RPM file name use the Query Format option (–qf or –queryformat). This is useful in comparing 2 systems, seeing 32 bit and 64 bit packages and finding the RPMs. This lists…
Working with files names that have spaces and special characters
Sometimes you need to work with multiple files that have spaces in their names. To do this you can backslash the special characters (\) or put quotes around their names..If you use filename completion, it should backslash the characters for…