Oct 312010
 

halloweenIn several commonly used shell commands can be shortened with convenient alias, a classic example is:
alias ll='ls -al'

Also in this field zsh has some interesting features, which enable you to define traditional aliases but also things a bit more particular.

Continue reading »

Flattr this!

Oct 132010
 

tuxAs someone posted in a comment of one of my former article (nohup, bg e disown), i’ve forget a command: setsid, while talking about the possibility of detach a process from a terminal or a shell

man setsid
setsid - run a program in a new session

The main difference i see from nohup is that you “lost” your standard output, but for some programs this could be normal or acceptable.

Basic usage:
For example run a script called ~/src/compile.all on a remote machine:

ssh your.remote-box.com
setsid ~/src/compile.all
logoff (or < ctrl > D)

it’s also possible to pass arguments with setsid command:

setsid /usr/bin/totem '/path/to/my/file.avi'

Flattr this!

Oct 082010
 

macaddressA Media Access Control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. Logically, MAC addresses are used in the Media Access Control protocol sub-layer of the OSI reference model.

MAC addresses are most often assigned by the manufacturer of a network interface card (NIC) and are stored in its hardware, the card’s read-only memory, or some other firmware mechanism. If assigned by the manufacturer, a MAC address usually encodes the manufacturer’s registered identification number. It may also be known as an Ethernet hardware address (EHA), hardware address, adapter address, or physical address.

Continue reading »

Flattr this!

Oct 052010
 

Small follow up of my former article on iproute2, in this article we’ll see some use of the command ss to know more information about Linux TCP / UDP Network and Socket Information

ss command is included in iproute2 package and is the substitute of the command netstat.

ss is used to dump socket statistics. It allows showing information similar to netstat. It can display more TCP and state informations than other tools.

Continue reading »

Flattr this!