1. Cat command:function:1) Displays the entire file.Example: $ cat FileName2) Connect the file string to the basic output, such as merging several files into one file or output to the screen.Example: $ cat file1 file2 > fileDescription: Connect the
1. Cat command:function:1) Displays the entire file.Demo Sample: $ cat FileName2) Connect the file string to the basic output, such as merging several files into one file or output to the screen.Demo Sample: $ cat file1 file2 > fileDescription:
1. View Log common commands tail:-n is the display line number; the equivalent of the NL command; tail-100f test.log Real-time monitoring of 100-line logs
Tail-n test.log Query Log The last 10 lines of the tail;
Tail-n +10 test.log to query all logs
The logs of the Android system are divided into two parts, and the underlying Linux kernel logs output to the/proc/kmsg,android log output to/dev/log.Android logsCommand format:[adb] logcat [Common usage is listed below:Filter logs by levelThe logs
The log generated by SQL Server installation is stored in this directory:
"%ProgramFiles%\Microsoft SQL server\[sql_version]\setup bootstrap\log\"
Note: [Sql_version] is a specific version of SQL Server, such as SQL Server 2008 is, SQL
1. View MySQL LogMysql> show global variables like '%log% '; +-----------------------------------------+-------------------------+| variable_name | Value |+-----------------------------------------+-------------------------+| Back_log | 80 | |
CatTail-fLog file description/var/log/message system startup information and error log, which is one of the most commonly used logs in red Hat Linux/var/log/secure Security-related log information/var/log/maillog message-related log
Retrofit2.0 How to print the requested JSON string and view the log?Key class: HttplogginginterceptorKey code:HttpLoggingInterceptor logging = new HttpLoggingInterceptor();logging.setLevel(HttpLoggingInterceptor.Level.BODY);httpClient = new
Native to Ubuntu system, Local System character encoding is:Echo $LANGZh_cn. UTF-8The character encoding for the remote server (121.199.42.27) is:Zh_cn. GB18030After logging on to the server via SSH, check the Catalina.out log in Tomcat and find
View Apache log Apache log locationDifferent system locations are different.
widnows
If it is windows, XAMPP should be in existence, go directly to the Apache folder/log/access.log | The file under the Error.log is good
Android developers will have to worry about log when they develop programs. Eclipse is not always log found, it is not very unpleasant, although the Logcat features of Android Studio is very good, but also not in the command line terminal printing
In the development of the company, the development of the program in the local test is normal, but in the test environment is problematic. The first reaction is to look at the log file and see what the error message is in the log file. I carried out
Tail-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~
1. Check the first n rows of the log: Cat file name | Number of Head-nDemoCat Test.log | Head-n 200 # View Test.log Top 200 lines2. Look at the end of the log n rows : Cat file name | Number of Tail-nDemoCat Test.log | Tail-n 200 # View Test.log
Note: The log file is: Test.log1.tail-f Test.logView the currently printed log (this method is always known!) There is a limit to the length of the printout. )The following are collected online:2. You must first understand the two most basic
I believe many people are writing their own Android project Ha, that must not be strong eclipse Wow, that is more sure to meet the problem is more ... For example, when you start Eclipse, you will find that eclipse does not open properly, the
General programs are deployed in a Linux environment, and when viewing logs, typically less is used to meet most of the requirements.Enumerating and documenting the most common scenarios, the code takes the Tomcat log file Catalna.out as an
Do not know how, today using mysqlbinlog This command to view the database log file, the following error occurred:/*!40019 SET @ @session. max_insert_delayed_threads=0*/;/*!50003 SET @[email protected] @COMPLETION_TYPE, completion_type=0*/;DELIMITER/
The general usage of materialization materialized views are a special physical table, and the materialized view is relative to the normal view. The normal view is a virtual table, the limitations of the application are large, any query on the view,
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.