Tag : linux

Golang Gin Practice Begins Makefile Original address:Golang Gin Practice Begins Makefile Preface Software engineering with a certain complexity basically compiles A, then relies on B, then compiles C … and finally executes the construction. Wouldn’t it be a collapse if every time people make arrangements, or every new colleague asks you how to build project ..

Read more

The First awk Introduction and Expression Example A language with strange names Pattern scanning and processing, data processing and report generation. Awk is not only a command in linux system, but also a programming language. It can be used to process data and generate reports (Excel); The processed data may be one or more files; ..

Read more

Problem Docker container executes top with error TERM environment variable not set One scheme top -bcn 1 -b: Batch processing, screen by screen display.-c: whether full command line information is displayed-n: Specify how many batches to display. Option 2 #echo $TERM dumb # export TERM=dumb doc Top executive report TERM environment variable not set resolution ..

Read more

View the system release root@cf0c6032ba2f:/# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty top(cpu) The Cpu(s) line provides information on the current CPU operation: Cpu(s): 11.4%us, 29.6%sy, 0.0%ni, 58.3%id, 0.7%wa, 0.0%hi, 0.0%si, 0.0%st Us: User CPU Time Percentage of CPU time spent running non-elegant user ..

Read more

Disk space full Since Linux has no recycle bin function, all files to be deleted on the online server will be moved to the system /tmp directory first, and then the data in the /tmp directory will be cleaned regularly. There is no problem with this policy itself, but the check shows that there is ..

Read more

1. Find the execution file (which/whereis) Which is used to find the absolute PATH of the executable file from the directory defined by the PATH variable of the system. For example, to find the absolute path of passwd command in the system, use the following method: [root@localhost ~]# which passwd /usr/bin/passwd The path can also ..

Read more

The meaning of state in netstat State in netstat -an parameter has the following meaning. LISTEN: Listen for connection requests from remote TCP ports. SYN_SENT: Wait for a matching connection request after sending the connection request. SYN_RECEIVED: After receiving and sending a connection request, wait for the other party to confirm the connection request. ESTABLISHED: ..

Read more

A process represents an execution process of a program. It is a running instance of an application program and a dynamic process. Or it can be more simply described as: a process is a program currently running by the operating system. When a process starts to run, it starts. The process consists of two parts: ..

Read more

The shared file system itself is not a disk file system in our usual sense. It cannot be used to store and manage disk data, but only defines the organization format and transmission protocol of files in the process of network transmission. Therefore, in the process of a file from one end of the network ..

Read more

Example #!/bin/bash timestamp=`date “+%Y%m%d%H%M%S”` baseDir=$(cd “$(dirname “$0″)”;pwd) sed “s/version/$timestamp/g” ${baseDir}/demo.yaml > ${baseDir}/tmp.yml Use variables in sed with double quotesFunctions executed in shell scripts are referenced wit..

Read more

[Original Address:https://blog.ti-node.com/blog …] Daemon phonetic symbol: [‘di: Mn], which means patron saint or spirit in Chinese. in fact, it also means guardian process. A daemon is simply a process that can run in the background without leaving the terminal. This is a very common process in Linux. After services such as apache or mysql are ..

Read more