Author: zhanhailiang Date: 2014-09-28
You can use the Tail-f tool to view the logs of the output in real time under Linux. Recently switched to the local Windows development environment, a bit uncomfortable. Baidu took the next, finally found tail of the implementation version of Windows.
1. Download
Background:Oracle is installed silently today and commands are issued at the command line./runinstaller-silent-responsefile/oracle/database/response/db_install.rspAs a result, there is no installation progress, only hints can be found from the/u01/app/orainventory/logs/installactions.....log results---> See here I think of in Linux is there a command to view a dynamically changing file? (This
Linux tail command-used to View File Content
The most basic options are cat, more, and less.
1. If you only want to view the first five lines of the file, you can use the head command, for example:
Head-5/etc/passwd
2. If you want to view the last 10 lines of the file, you can use the
of the file name. 1 head-q-n k file1 file2 file34. all contents are displayed except the last k rows. 1 head-n-k/log/syncxxx. log 2. tail command instance 1. default value. The last 10 lines are displayed. 1. tail/etc/passwd2 and display the last k rows. (The effect of the
This is a creation in
Article, where the information may have evolved or changed. The project needs to implement the ability to read the specified number of rows at the end of the file (similar to the tail command), and then see the implementation of the tail command. Then use the go language to follow the idea of writing a bit. The real-time output function of
Tail Show end of file1 , command formatTail[option] ... [File] ...2 , command functions show file contents, display the file's 10 lines by default, you can use [-n] # | [-#] # represents the number of rows displayed, options specify how many rows to display use tail command -f option for easy access to
root directory to the test folderAlso we can rename a file by moving a file in the same directory, for example, we have the name of the Test.txt Test.doc, only need to use MV Test.txt Test.docMove multiple files, you can enter more than one file name, compare we want to put the test folder below the two files Test.txt,test2.txt moved to the Test2 folder below, y
The tail command writes the file to standard output starting at the specified point. Using the-f option of the tail command makes it easy to see the log files that are being changed, TAIL-F filename will display the most up-to-date contents of the filename on the screen, and
the last 20 lines of the file ABC are displayed on the screen.The head command outputs the beginning part of the text file, using the following:Head [-HEAD-20 ABCOutputs the first 20 lines of the file ABC on the screen.For example, combine the first 30 rows of the A1.txt file under the current directory with the 25 li
Tags: target blog get log self-learning Linux view command inux file Linux commandClick Back to learn the path of the Linux command line and shell script3.6-Files View command file cat more less tail headlsThe command is used to display a list of file directories,
standard output from a specified point, and tail-f can view the log files that are being played out, allowing you to see the latest log log.Command syntax:Usage:tail [-F |-f |-r] [-Q] [-B # |-C # |-N #] [file ...]Command instance:-F: Monitor file growth;? ping www.cnblogs.
Tail tailui
Tail is a real-time file monitoring and Viewer based on command lines. It is a Windows Port for Unix 'Tail-F' commands.
Tail can quickly display the end of a large file
text must be written in a logical page.Each logical page has a header, a body, and a footer section (which can have an empty section).Unless you use the-P flag, the NL command re-sets the line number where each logical page begins. Row calculation flags can be set separately for header, body, and footer sections (for example, header and footer lines can be computed but text lines cannot).Usage examples:Example one: List the contents of Log2012.log wi
Tags: display loop read standard ctrl TTL post refresh view file nameTail display text Footer command English intent
Tail
Command format
tail[必要参数][选择参数][文件]
Command function
The tail command writes the file to standard output starting at
}/${log.debug.file}Log4j.appender.debuglog.threshold=debugLog4j.appender.debuglog.maxfilesize=128mbLog4j.appender.debuglog.maxbackupindex=3Log4j.appender.debuglog.layout=org.apache.log4j.patternlayoutLOG4J.APPENDER.DEBUGLOG.LAYOUT.CONVERSIONPATTERN=%D{YYYY-MM-DD HH:mm:ss}%-5p [%t]%c.%m (%l)-%m%n
At this point, you need to use the system to define the environment variables for the output path and file name of the
In Linux, you can use the tail command to create a self-decompressed tar file-general Linux technology-Linux technology and application information. The following is a detailed description. The Tail command parameter contains the-n, -- lines = N, which can directly output the last N lines in a file.
Using this param
Command formattail [OPTION] ... [FILE] ...Command parameters-C,--bytes=[-]kDisplays the post-K-byte contents of each file.-F,--follow[={name|descriptor}]Continuously monitors the specified file, and when the file appends content, the new content is immediately displayed on the screen.-N,--lines=[-]kDisplays the followi
=never not display color (always display color, Auto automatically judge)LS--full-time output in full time mode(2) Copy, delete and move (CP,RM,MV)Cp-a/var/log/wtmp wtmp_test Copy all of the file's features pastCp/var/log/wtmp. Copy to current directoryCp-i if the target file exists, the overwrite asks for the actionCp-p is copied along with the
log is started.An example of setting in Windows is as follows:# Restrict the error log file to 1 MBErrorLog "| bin/rotatelogs.exe-l logs/error-% Y-% m-% d. log 1M"# Generate an error log
When using a flumeng1.3.1 tail file to collect logs to HDFS, it is found that the last few lines of data in the original log file cannot always be written to the HDFS file, even if HDFS rolls into a new file by size or time.
When
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.