How to list all iptables rules that are set on your Linux system. This is very easy.

The iptables -L or iptables –list commands will list all of the iptables rules that are set on your Linux machine. Below is the abbreviated output of this command on my Fedora Linux system. [root@localhost homer]# iptables –list Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all — anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT … Read more

How to use color in the ls command to brighten up your directory listings.

Below we see output of the ls command when listing a directory. The –color=auto parameter allows the use of color if your terminal supports it. And since everyone either uses Konsole or Gnome Terminal; this command will always work. I am using zsh at the moment; but this works with just about any shell. ls … Read more

How to use the Linux cat command to read the contents of a folder. This is a cool trick.

This is a neat trick that allows you to use cat to view the contents of a directory. This library is loaded before the cat command is executed and modifies its behavior to allow you to use cat to list a directory. #include <unistd.h> #include <stdio.h> #include <dirent.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include … Read more

A list of my most useful theming posts for Linux desktops. A selection of some very useful themes and styles for KDE & MATE.

http://www.securitronlinux.com/bejiitaswrath/how-to-install-the-linux-mint-13-mate-desktop-in-ubuntu-12-10-quantal-quetzal/ How to install the Linux Mint 13 MATE desktop in Ubuntu 12.10. http://www.securitronlinux.com/bejiitaswrath/some-more-nice-themes-for-the-linux-mint-13-mate-desktop/ A list of lovely themes for the Linux Mint 13 MATE desktop. http://www.securitronlinux.com/bejiitaswrath/another-selection-of-very-nice-linux-mint-mate-themes/ Another selection of very nice MATE themes. http://www.securitronlinux.com/bejiitaswrath/mate-desktop-on-linux-mint-13-some-nice-gtk-and-icon-themes-to-make-it-look-very-nice/ A selection of very nice MATE icon themes and GTK styles to theme your desktop. http://www.securitronlinux.com/linux-mint-2/windows-7-lookalike-kde-themes-how-to-make-linux-look-like-vista-or-windows-7/ Some themes and icons for KDE 4.8.0 … Read more

How to list the indexes in a MySQL database table.

How to list the indexes in a MySQL database table. Easily done using the show command. mysql> show index from customer; +———-+————+——————-+————–+——————–+———–+————-+———-+——–+——+————+———+—————+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +———-+————+——————-+————–+——————–+———–+————-+———-+——–+——+————+———+—————+ | customer | 0 | … Read more

More MySQL tips. Listing databases and viewing the MySQL version.

How to list tables in a MySQL database. mysql> show tables in acme; +—————-+ | Tables_in_acme | +—————-+ | address | | customer | | discount | | order_header | | order_line | | order_shipment | | payment_terms | | phone | | product | | reseller | | salesman | | shipment | | … Read more

MPAA releases list of copyright infringing websites.

The MPAA have released a lit of websites they say are supporting online piracy, these include the obvious torrent websites, they are also targeting the video streaming websites used to stream copyrighted movies and music. The Rapidshare website has been left out of this list for now, considering the fact that they are wielding more … Read more