linux

Memory monitoring using sar

:~> sar -r 1 1000 Linux 2.6.16.60-0.21-smp (pg_sc02s_ad) 10/03/2012 09:08:42 PM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad 09:08:43 PM 1388672 6783764 83.01 285204 4656392 20972664 184 0.00 0 09:08:44 PM 1388664 6783772 83.01 285204 4656392 20972664 184…

rstatd configuration

1) Download rstatd. 2) Build and install rstatd: $ tar xvzf rstatd.tar.gz $ cd rpc.rstatd $ ./configure –prefix=/usr $ make # sudo su # make install 3) Add a line to to allow certain hosts to make rstatd requests: rpc.rstatd:…

Atop command

The program atop is an interactive monitor to view the load on a Linux system. It shows the occupation of the most critical hardware resources (from a performance point of view) on system level, i.e. cpu, memory, disk and network.It also…

Red Hat List Running Services

Q. How do I list all currently running services in Fedora / RHEL / CentOS Linux server? A. There are various ways and tools to find and list all running services under Fedora / RHEL / CentOS Linux systems. service command –…

Enable syslog debug mode

[root@stroj ~]# cp .120904 [root@stroj ~]# vi [root@stroj ~]# more # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console # Log anything (except mail) of level info or…

Enable debug in syslog

[root@stroj etc]# cp .120904 [root@stroj etc]# vi # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console # Log anything (except mail) of level info or higher. # Don’t log…

7 Linux sudo Command Tips and Tricks

Using sudo command, an user can execute root only commands. In this article, let us review how to setup sudo environment along with some sudo command examples, tips, and tricks. 1. Set up sudo Environment in /etc/sudoers You can provide…

Yum check-update

Configuration for Fedora 6 fedora-core.repo fedora-updates.repo fedora-extras.repo [root@stroj yum.repos.d]# yum check-update [root@stroj yum.repos.d]# yum update Loading „installonlyn“ plugin Setting up Update Process Setting up repositories Reading repository metadata in from local files Resolving Dependencies –> Populating transaction set with…

Modify FW rules

The iptables firewall will need to be modified to allow connections to the Apache web server that will be installed. Edit your /etc/sysconfig/iptables file with your favorite text editor. Modify the file as outlined below by adding the black line…

Search for word in files

find . -type f -exec file ‚{}‘ ; Runs `file‘ on every file in or below the current directory. Notice that the braces are enclosed in single quote marks to protect them from interpretation as shell script punctuation. The semicolon…

Check and mount the disc

Check what directory is most fulldu -b | sort -n -r | more List of available discsfdisk -l Show mounted discs/directoriesmount Configuration of mounted pointsmore /etc/fstab List available vxdiscsvxdg listvxdisk list Volume Group displayvgdisplay Physivcal volume displaypvdisplay Mount disc to…