skip to main
|
skip to sidebar
Linux Blog
Home
Posts RSS
About
Forum
Head and Tail example
1. Suppose I need to read last 10 lines of a file
# tail -n 20 /var/log/boot.log
2. Suppose I need to read forst 10 lines of a file
# head -n 30 /etc/sensors.conf
Now imagine you want to follow what is been written “live” to the /var/log/messages file
# tail -f /var/log/messages
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Last 30 days Popular Posts
Links/Online Guides/Forums for top Linux Distro's
Baobab - Linux Graphical Disk Usage Analyzer
How to Limit network access by user / group using iptables - Owner Match
Working with CAB file on Linux
How to Convert cue and bin files into an iso/cdr/wav file - BChunk
Detect and Repair Problems in MP3 files - MP3 Diags
How to Extract Audio from Video file using ffmpeg
White Paper - Security and Trust: The Backbone of Doing Business Over the Internet
Software Testing FAQ
Howto check disk drive for errors and badblocks
Blog Archive
►
2013
(51)
►
June
(2)
►
May
(5)
►
April
(4)
►
March
(13)
►
February
(10)
►
January
(17)
►
2012
(167)
►
December
(6)
►
November
(12)
►
October
(19)
►
September
(13)
►
August
(13)
►
July
(16)
►
June
(9)
►
May
(16)
►
April
(10)
►
March
(20)
►
February
(18)
►
January
(15)
►
2011
(141)
►
December
(21)
►
November
(12)
►
October
(16)
►
September
(12)
►
August
(14)
►
July
(10)
►
June
(11)
►
May
(4)
►
April
(10)
►
March
(1)
►
February
(12)
►
January
(18)
►
2010
(242)
►
December
(25)
►
November
(19)
►
October
(22)
►
September
(20)
►
August
(26)
►
July
(21)
►
June
(13)
►
May
(22)
►
April
(19)
►
March
(16)
►
February
(15)
►
January
(24)
►
2009
(269)
►
December
(14)
►
November
(20)
►
October
(29)
►
September
(16)
►
August
(22)
►
July
(19)
►
June
(28)
►
May
(19)
►
April
(28)
►
March
(31)
►
February
(14)
►
January
(29)
▼
2008
(583)
►
December
(23)
►
November
(37)
►
October
(43)
►
September
(46)
►
August
(34)
►
July
(58)
►
June
(62)
▼
May
(63)
Ubuntu installer for Windows users
20 Awesome Devices That Run Linux (But Weren’t Des...
Installation and Configuration of MySQL in Ubuntu
Password protected GRUB in Ubuntu
ufw (Uncomplicated Firewall) setup and configurati...
DHCP server Configuration in Ubuntu
Linux Home Server - Amahi
Banshee now with Video Playback support
Mythbuntu - MythTV based PVR system
What is the difference between Ubuntu, Kubuntu, Xu...
Open source graphics card open for orders
Google Anti-Malware Diagnostic Pages
HowTo Split the files
Rootkit detectors for Linux
Best Antivirus for Linux
Linux System Information Gathering Tool (LINUXexplo)
video capture application - ucview
phonetooth - Send text messages (SMS) with your phone
eLearning (swf), similar to Adobe Captivate
Open Source Speech Recognition Engines
HowTo keep your Ubuntu up-to-date
Change the splash screen color in Ubuntu
How to enable Compiz Fusion in Ubuntu
iftop - Network Usage by Connection
Distributed memory object caching system
Video Players for Linux
HowTo use scp and sftp commands
Installing and Using John the Ripper - Password cr...
Linux Filesystem Hierarchy
Convert man pages to text
Block messengers through Iptables
Head and Tail example
Journaled File Systems options
What is TCP reset attacks
What are Sticky Bit, SUID (Set User ID) Bit and SG...
Restricting scheduling (cron, at) to normal user
Posfix security - How to change mailbanner
Moonlight (silverlight for linux) relesead
Install multimedia Support in Ubuntu Hardy Heron
Install multimedia Support in Fedora 9
Kernel oops count
GUI tools to build Iptables/Firewall rules
What is 127.0.0.1?
ICMP Error codes
Time bases iptables rules
Howto open port using iptables
Howto create a MySQL user
Howto change the MySQL root password
Turn OFF password expiration / aging
OpenSUSE Hard Disk Configuration Survey
Install Google Earth on Linux
Remote Desktop to Windows through Linux
Howto Install Wine in Ubuntu
Network Scanner - Abyss
Search And Replace Text in files Recursively
A Password Recovery Tool for PDF-files
Migrating to ext4
Create ISO image of directory
Directory indexing
Adding new splash image to grub
SSH login without password
gnormalize - audio converter, encoder, ripper, met...
How To Increase SSH Connection timeout
►
April
(66)
►
March
(56)
►
February
(56)
►
January
(39)
►
2007
(68)
►
December
(15)
►
November
(15)
►
October
(38)
0 comments:
Post a Comment