I use iptables by many years and used it also for complex solutions and only recently i’ve discovered ufw (Uncomplicated Firewall), the ubuntu version, or better developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. By default UFW is disabled.
Display files information with stat
The stat command is really useful to gather information from file, directory and file system. The basic usage of stat is: ~#stat /etc/passwd File: `/etc/passwd’ Size: 999 Blocks: 8 IO Block: 4096 regular file Device: ca00h/51712d Inode: 845 Links: 1 Access: (0644/-rw-r–r–) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-05-26 12:14:41.000000000 +0200 […]
4 Tricks with sudo
I think that sudo is become a wide used command with Ubuntu, where you don’t even have a root password, before that probably it was used only in some data-centers to restrict access to some commands. sudo allows a permitted user to execute a command as the superuser or another user, as specified in the […]
Unusual SSH
Today I present this excellent article by Domenico Raffaele originally presented in his blog (in Italian) where you can find many other interesting articles about hacks and VoIP. I’ve already wrote about unusual use of ssh. I want to return to this topic fascinating and almost unknown, once again, and I promise I will not […]
5 grep like commands
Everyone knows (and loves) grep, I’ve also wrote an article on it, but today we’ll see other small utility that have some things in common with it. In particular I’ll show you: pgrep, grepcidr, ngrep, pdfgrep and taggrepper. All are command line tools to be used with your favorite shell, I’ll show you some example for every command.