• Linux exa command (better presentation of file experience than LS)


    install Follow readme to install It is mentioned in the document that exa is implemented in rust and must have version 1.17.0 or higher installed Install rust Try a fool’s installation $ curl -sf -L https://static.rust-lang.org/rustup.sh | sh Installing exa Exa is implemented in the rust language. Before installation, your system must support rust 1.17.0 […]

  • Method of getting information of built-in modules in Linux system


    The modern Linux kernel is growing rapidly over time to support a large number of hardware, file systems, and network functions. During this period, the introduction of “loadable kernel modules” [LKM]) prevents the kernel from becoming more and more bulky, and flexibly extends functions and hardware support in different environments without having to rebuild the […]

  • Summary of new usage of VI (VIM) in Linux


    I have been using VI editor for several years, but I still haven’t used some practical usages. After listening to the introduction of Linux in Python video, I still learned some new tricks 1. Set Nu displays the line number 2. GG ——– to the beginning of the file 3. G — to the end […]

  • Tcpcopy is installed on Linux server to obtain user access traffic


    Tcpcopy can be used as a stress testing tool, and it can also obtain the real user access traffic, so as to simulate the real running environment. The developers of tcpcopy introduce it as follows: Tcpcopy is a kind of request replication (all TCP based packets) tool, which is widely used. By using tcpcopy program, […]

  • Method of setting and modifying user password with passwd command in Linux


    1. A brief description of passwd; We have learned how to add users, so we have to learn to set or modify the password of users. The passwd command has many usages. We only select the following parameters to explain it. For more information, please refer to man passwd or passwd — help; passwd [OPTION…] […]

  • A friendly alternative to find in Linux (FD command)


    The FD command provides a simple and straightforward way to search Linux file systems. FD is an ultra fast, Unix / Linux find replacement for rust. It doesn’t provide all the power of find. However, it does provide enough functionality to cover 80% of the situations you may encounter. Features such as good planning and […]

  • Using memtester to test memory pressure on Linux server


    Recently, to test the overall performance of a machine, I searched Google and found that this small tool can be used for memory stress testing. Memtester is mainly used to capture memory errors and always in high or low bad bits. The main test items include random values, XOR comparison, subtraction, multiplication and division, By […]

  • Implementation of Linux UDP server and client program


    1. Source code UDP server: /** *@ brief UDP server * @author Mculover666 * @date 2020/04/15 */ #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv[]) { int server_sock_fd; struct sockaddr_in server_addr, client_addr; char recv_buf[100]; int nbytes = 0; socklen_t len = 0; […]

  • Using puppeter on Linux (CentOS) to realize the function of webpage screenshot


    You may encounter the following problems when installing puppeter on Linux. This article will show you how to climb the pit! > [email protected] install /www/node_modules/puppeteer > node install.js ERROR: Failed to download Chromium r706915! Set “PUPPETEER_SKIP_CHROMIUM_DOWNLOAD” env variable to skip download. { Error: EACCES: permission denied, mkdir ‘/www/node_modules/puppeteer/.local-chromium’   — ASYNC —     at BrowserFetcher.<anonymous> […]

  • The basic method of using ipvsadm to configure LVS Cluster in Linux


    LVS cluster has three configuration modes: Dr, Tun and NAT, which can balance the load of WWW service, FTP service and mail service. The following describes the LVS cluster configuration based on Dr mode by building a load balancing example of WWW service.  1、 Configuration of director serverThere are two methods to configure LVS load balancing […]

  • Implementation of mapping remote disk directory with NSF in Linux


    Suppose the source directory is on the machine and the directory is / data If the client cluster is, you need to transfer the / data directory on the machine to the local / data directory 1. Install NSF and portmap on two machines yum  install  nfs-utils  portmap After installation. 2. Modify […]

  • Ripgrep, the fastest text search artifact in Linux


    preface When it comes to text search tools, you will know grep, which is one of the most useful and commonly used tools in Linux.But if you want to search for a keyword in a large project, you must know that it is time-consuming.So there are a lot of alternative tools. The most famous ones […]