Aug 132014

Article by giannis_tsakiris first posted on

A hard link is actually nothing more than a regular directory entry, which in turn can be seen as a pointer to the actual file’s data on the disk. The cool thing about hard-links is that a file can be stored once on the disk, and be linked to multiple times, from different locations/entries, without requiring to allocate extra disk space for each file instance.

But then a question arises: Given a specific file on disk, how can someone know whether it is linked to by other directory entries or not? This can be easily answered using the ls command:

giannis@zandloper:/etc$ ls -l passwd
-rw-r--r-- 1 root root 1402 2008-03-30 17:49 passwd

Do you ever wonder what is this small number between the file permissions and the owner in the output of ls’s long listing format (its value is usually “1″ for files, or “2″ for directories)? This number is actually the link-count of the file, when referring to a file, or the number of contained directory entries, when referring to a directory (including the . and .. entries).
Continue reading »

flattr this!

Mar 012014

logoMPD, short for Music Player Daemon, is a flexible, powerful, server-side application for playing music. Through plugins and libraries it can play a variety of sound files while being controlled by its network protocol.

It is also used for one of the two purposes, as local daemon or as network daemon. MPD don’t use many resources. It is designed to make its job in background playing music from its database.

For connecting with MPD and managing music there are many options and clients. CLI clients, GTK clients, Qt clients and even from VI.
Continue reading »

flattr this!

Aug 172013

sshI use ssh connections to manage remote servers it’s one of the main task in my work, so over time I’ve learnt some tricks to speed up the connection phase of the ssh protocol, so in this article I’ll show you how to:

Configure ssh to use ipv4 only
Configure ssh to use a particular authentication method
Reuse SSH Connection
Disable the Dns lookup on server side

Also if you are interested in ssh you can take a look at my previous articles about How to keep ssh connections alive on Linux and how to keep a Permanent SSH Tunnels with autossh.
Continue reading »

flattr this!

Out test with Linux Mint 15 Olivia, Cinnamon edition

I’ve changed the GNU/Linux distribution of my home computer from Xubuntu to Mint (XFCE edition) 2 releases ago, and from that date I’ve never regret it, so while I wait for the release of the XFCE edition of Olivia (the code name of Mint 15), I’m glad to publish an interesting article of Manuel and [...]

The best articles on Linuxaria in the last 3 months

It’s from some time that I don’t post about the most read articles on Linuxaria, and so today I present you a small list of the top 7 articles of the last 3 months published on Linuxaria, and that perhaps you have missed, in that case this is a good chance to read them. 7) [...]