Ημερήσια αρχεία: 27 Σεπτεμβρίου 2011


Ubuntu Linux: Basic SSH Setup On Ubuntu 10.10 Maverick Meerkat Using OpenSSH Server

sudo apt-get install openssh-server


Remove the first line from file / Remove first N lines from file

tail -n +2 someFile

*Notes: You MUST include the + sign or else the last 2 lines will be printed instead.

 

To remove N lines from the start of the file

tail -n +$M someFile

*NOTES: M = N + 1
You MUST include the + sign in-front of the number M or else the output will be the last M lines instead.


Oracle VirtualBox: Enable eth0 on backtrack4 / enable default ethernet card on backtrack

ifup eth0

*INFO: The default Ethernet device is disabled on boot but it can easily be enabled by just issuing the above command. (You still need to configure it depending on your system’s structure). In order to activate the Ethernet card you need to call the above command from the Terminal.