How to show first three lines of the file?
head command is the answer
Lets show usage of this command on file.txt example
head -n X file.txt
where X is number of last lines which we want to prompt
head -n 3 file.txt
auto eth0
iface eth0 inet dhcp2) Setup interface with static IP address: iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254
:%s/one/two/g:%s/one/two/gc:%s/one\/two/gc :%s/one/two/gi:%s/one/two/gI sudo apt-get updatesudo apt-get install -y openjdk-7-jre; apt-get install -y openjdk-7-jdk; apt-get install -y icedtea-7-pluginsudo rebootsudo update-alternatives --config java /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java