Command to view the specified number of lines in the file tail command (to view the data at the end of the file) 1 #The content at the end of the output file, 10 lines by default
2 tail date.l
Tag: file
How to avoid creating .crc files when creating parquet floors
I am using a parquet frame to write parquet files
I used this constructor to create a parquet writer –
public class ParquetBaseWriter extends ParquetWriter {
public ParquetBaseWriter(Path fi
Get the file from the specified address, the regular match, output to the specified form
import pymysql import re conn = pymysql.connect( host=’localhost’, port=3306, user=’root’, passwd=’123456′, db=’test’, charset=’utf8′, ) cursor = conn.cursor() f = open(‘D:\fil
Operating system – How does the operating system perform compilation binaries?
When I studied process scheduling, this question came to my mind.
How does the operating system execute and control the execution of binary files and compiled files ? I think the OS may copy
LINUX file, directory and file system backup and recovery related commands
1. Common compression instructions in Linux systems Common compressed file formats in Linux systems:
Common options:
For example:
(1) Compression:
[[email protected] ~]# cp /etc/
[Linux] CP bulk copy file
[Requirements]:
There are 2 folders a, b, now you need to copy all the files (aa.py, a2.py, a3.py) in folder a to folder b (empty folder)
[Solution Method]:
The first thing that c
OSX – list all files in a Homebrew package
How to make homebrew software list all installed package files? For example, when I run brew list for the exim package, I get these files:
$ brew list exim
/usr/local/Cellar/exim /4.80.1/bin/
OSX – How to make Spotlight Index MarkDown files?
I usually use .markdown or .md extensions for markdown documents. Unfortunately, Spotlight refuses to index unless they have a .txt file extension.
I have seen a possible solution involving e
Third, SerSYNC + RSYNC implements server file real-time synchronization
1. Why use rsync+sersync architecture? 1, sersync is developed based on inotify, similar to inotify-tools tools
2, sersync can record changes in the monitored directory (including Add, delet
How do I set the default file encoding of the source file in Qt Creator?
There is no default file encoding option in my qt creator. Therefore, every newly created file inherits from the system encoding, which is gbk(cp936) in my Windows box. But I want to set the defaul