Linux head instruction usage
head-n x file path > The new file name
is here, x stands for the previous x data that you want to intercept, modify
according to needs. For example, if you want to extract 10,000 pieces of data, the instruction is head-n 10000 file path > The new file name
file path is because you need to tell the system where the file is
. If you don’t know, you can use the find /* -name file name to query the location of the file
. The new file generated by> is placed in the same path as the file by default.
Read More:
- Alpine Linux executable file crash report error / lib / x86 not found_ 64 Linux GNU / libc.so solution
- Removing duplicate lines from Linux shell files
- Several methods of deleting all empty lines in text under Linux
- There is a problem decompressing the zip file: an error occurred while extracting files
- Latex letters with symbols, wavy lines, horizontal lines, horn, etc
- Linux use ls to view the file color is all white solution, and Linux file color introduction
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- 【PTA:】 Error: class X is public should be declared in a file named X.java
- Windows encountered 1152 when installing software: error extracting files to the temporary location
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- Import / export. SQL file / gzip file for MySQL under Linux
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- Method of modifying file and folder permission by Chmod command in Linux
- The Linux terminal appears bash: setup.bash : no such file or directory, and. Bashrc file
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- Error while extracting response for type [java.util.List<java.util.Map<java.lang.String,Object>>]
- module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribute ‘CLSIDToClassMa
- [-] handler failed to bind to x.x.x.x: Port troubleshooting
- Apache Groovy——java.lang.NoSuchMethodError: x.x.x: method <init>()V not found
- Linux rhel7/centos7 source code compilation and installation Emacs Error NO x toolkit could be found