Use the tail command to write the file specified by the File parameter to standard output beginning at a specified point.
See the following examples:
- To display the last 10 lines of the notes file, type the following:
tail notes
- To specify the number of lines to start reading from the end of the notes file, type the following:
tail -20 notes
- To display the notes file one page at a time, beginning with the 200th byte, type the following:
tail -c +200 notes | pg
- To follow the growth of the file named accounts, type the following:
This displays the last 10 lines of the accounts file. The tail command continues to display lines as they are added to the accounts file. The display continues until you press the [Ctrl-C] key sequence to stop the display.tail -f accounts
Parent topic: Administering files
The tail command displays, by default, the last 10 lines of a text file in Linux. This command can be very useful when examining recent activity in log files.Here is an example:
In the picture above you can see that the last 10 lines of the /var/log/messages file were displayed.
The tail command can be used with various options. For example, if you would like to display the last 5 lines of a file, you can use the -n option:
Another option that you will find handy is the -f option. This option keeps the file open and displays new lines as they are being added to the file.
# Windows7[11, OsType.Windows, false],false
os.windows_7.id.value = 11
os.windows_7.name.value = Windows 7
os.windows_7.derivedFrom.value = windows_xp
os.windows_7.sysprepPath.value = ${ENGINE_USR}/conf/sysprep/sysprep.w7
os.windows_7.productKey.value =
os.windows_7.devices.audio.value = ich6
os.windows_7.devices.diskInterfaces.value.3.3 = IDE, VirtIO_SCSI, VirtIO
os.windows_7.devices.diskInterfaces.value.3.4 = IDE, VirtIO_SCSI, VirtIO
os.windows_7.devices.diskInterfaces.value.3.5 = IDE, VirtIO_SCSI, VirtIO
os.windows_7.isTimezoneTypeInteger.value = false
- Documents
- Computers
- Security
Cyber Security Internship ReportUploaded by
vicky
67%[6]67% found this document useful [6 votes]
5K views70 pagesDocument Information
click to expand document informationCopyright
© © All Rights Reserved
Share this document
Share or Embed Document
Sharing Options
- Share on Facebook, opens a new window
Facebook
- Share on Twitter, opens a new window
Twitter
- Share on LinkedIn, opens a new window
LinkedIn
- Share with Email, opens mail client
Email
- Copy Link
Copy Link
Did you find this document useful?
67%67% found this document useful, Mark this document as useful
33%33% found this document not useful, Mark this document as not useful
Is this content inappropriate?
Report this DocumentSaveSave Cyber Security Internship Report For Later
67%[6]67% found this document useful [6 votes]
Cyber Security Internship Report
Uploaded by
vickyFull description
SaveSave Cyber Security Internship Report For Later
67%67% found this document useful, Mark this document as useful
33%33% found this document not useful, Mark this document as not useful
EmbedShare
Jump to Page
You are on page 1of 70Search inside document
You're Reading a Free Preview
Pages 7 to 12 are not shown in this preview.
Buy the Full Version
You're Reading a Free Preview
Pages 16 to 18 are not shown in this preview.
Buy the Full Version
You're Reading a Free Preview
Pages 25 to 39 are not shown in this preview.
Buy the Full Version
You're Reading a Free Preview
Pages 43 to 47 are not shown in this preview.
Buy the Full Version
You're Reading a Free Preview
Pages 53 to 66 are not shown in this preview.
Buy the Full Version
Reward Your Curiosity
Everything you want to read.
Anytime. Anywhere. Any device.
No Commitment. Cancel anytime.
Share this document
Share or Embed Document
Sharing Options
- Share on Facebook, opens a new window
- Share on Twitter, opens a new window
- Share on LinkedIn, opens a new window
- Share with Email, opens mail client
- Copy Link
Home Books Audiobooks DocumentsQuick navigation