Mohammedz.com

For Linux and Shell scripting.


Leave a comment

Apache: how to disable directory listing

Disable directory listing using httpd.conf:
* Open your httpd.conf and look for “Options Indexes”
* Change “Indexes” to “-Indexes” if it exists.
* Or else add “Options -Indexes” as a new line
* Restart your apache webserver

Disable directory listing using .htaccess:-
* Open your .htacces file and look for “Options Indexes”
* Change “Indexes” to “-Indexes” if it exists.
* Or else add “Options -Indexes” as a new line

Regards,
Mohammed.


Leave a comment

RedHat Top Tools

CPU Tools:
——————
top
vmstat
ps aux
mpstat -P all
sar -u
iostat
oprofile
gnome-system-monitor
KDE-monitor
/proc

Memory Tools:
————————
top
vmstat -s
ps aur
ipcs
sar -r -B -W
free
oprofile
gnome-system-monitor
KDE-monitor
/proc

Process Tools:
———————–
top
ps -o pmem
gprof
strace,ltrace
sar

Disk Tools:
—————–
iostat -x
vmstat -D
sar -DEV #
nfsstat