Linux View log file Contents command tail, Cat, TAC, head, EchoTail-f Test.logYou will see that the screen is constantly being printed out. This time interrupts the first process ctrl-c,---------------------------How Linux displays a few lines of a file (in the middle of a few lines)Starting at line No. 3000, displays 1000 rows. The 3000~3999 line is displayedCat
Tail-f, Log.io is also roughly this meaning, but more powerful than the TAIL-F function. This thing is also C/s structure of OH.
The following is a practical demonstration:
1, installation
This thing, rely on Nodejs, we first put Nodejs, refer to the official installation method: (http://nodejs.org/download/)
I'm using the Mac Brew installation method here:
Copy Code code as follows:
Bre
Linux View log file Contents command tail, Cat, TAC, head, EchoTail-f Test.logYou will see that the screen is constantly being printed out. This time interrupts the first process ctrl-c,---------------------------How Linux displays a few lines of a file (in the middle of a few lines)Starting at line No. 3000, displays 1000 rows. The 3000~3999 line is displayedCat
The job needs to look at the log information, troubleshooting, but in the face of tens of thousands of error logs, from the beginning to look back, a waste of time, all using the tail command will save a lot of time.1. Command Tail-n opt/tomcat/logs/catalina.outWhere-represe
Linux View log file Contents command tail, Cat, TAC, head, EchoTail-f Test.logYou will see that the screen is constantly being printed out. This time interrupts the first process ctrl-c,---------------------------How Linux displays a few lines of a file (in the middle of a few lines)Starting at line No. 3000, displays 1000 rows. The 3000~3999 line is displayedCat
The tail command outputs the end of the file, which, by default, displays the last ten lines of the file. It is often used to dynamically monitor the growth of the tail content of a file, for example to monitor changes in log files. The tail
View File and content processing-tail command, view processing-tail command1. Command description:
The tail command is used to display the end Of the file content. By default, tail only
The reason for this error is that there is a database in your database server with the same name!RESTORE DATABASE [student] from DISK = N ' g:\ backup files ' with file = 1, move n ' student ' to n ' G:\student.mdf ', move n ' Studen T_log ' to N ' g:\\student.ldf ', nounload,replace, STATS = ten, PASSWORD = ' 123456 'So add REPLACE or STOPAT after with to restore! But the database with the same name may be overwritten!MSSQL-The log
The tail command writes the file to the standard output from the specified point. you can use the-f option of the tail command to conveniently check the changing log file. tail-ffilename will display the
The AIL command outputs the end of the file, which, by default, displays the last ten lines of the file. It is often used to dynamically monitor the growth of the tail content of a file, for example to monitor changes in log files. The tail command corresponds to the head
Introduction
If the log file is not damaged due to various causes. The tail of log can be used to restore the database to the State in the event of a disaster.
For example:
. A complete backup is made in db_1 and a log backup is made at log_1 and log_2. Shortly after the log_2 backup, a fault occurred. Logs
Tags: sqlAccident background:suddenly the database is corrupted for no apparent reason, and differential or transaction log backups 3 point will be automatically done, then how to 2 Point to 2 Point + data recovery between the ? this needs to be restored by backing up the tail log. Environment Description:A company has installed aSQL Serverdatabase, in order to
The tail command is also a very common command for file viewing classes, and today we will introduce you to the use of the Linux Tail command.
For more information on Linux commands, see: Linux Command Quick check manual
The tail command writes the file to the standard output from the specified point. Using the-f option of the tail command makes it easy to refer to the changing log file, Tail-f filename will display 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
*1000, M 1024*1024,
GB 1000*1000*1000, G 1024*1024*1024, for T, P, E, Z, Y are equally applicable.
Tail command detailed
Usage: tail [options] ...
[File] ...
Displays the last 10 lines of each specified file to standard output.
If more than one file is specified, the program adds the corresponding file name as the header at the beginning of each segment
Http://www.cnblogs.com/peida/archive/2012/11/07/2758084.htmlThe 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,
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-dat
Tag: Data does not display option specifies the TTL process ID int byte fileThe 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,
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.