readlink - Follow links for you

readlink – Follow links for you

Sometimes happen that you find a sequence of links, and so you should start to follow them to see exactly what command are you about to run, or the directory used in that symbolic link, or you can use readlink. readlink it’s contained in the package coreutils, so you should already have it. The basic […]

More SSH Port Forwarding

More SSH Port Forwarding

Today I present another excellent article by Domenico Raffaele originally presented in his blog (in Italian) where you can find many other interesting articles about hacks and VoIP. This is his second article about ssh. Here you’ll see some example of SSH Port Forwarding, sometimes called SSH Tunneling, which allows you to establish a secure SSH […]

ufw - Iptables under Ubuntu

ufw – Iptables under Ubuntu

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

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 […]