• Document and directory structure of Linux


    Catalog 1. Linux file system structure 2. Schematic diagram of directory tree structure 3. Operation related to directory 3.1 CD command, changing directory 3.2mkdir, create a new directory 3.3rmdir, delete empty directory 3.4 path of Linux 4. Absolute path and relative path 5. Linux file system 1. Linux file system structure The organization of Linux […]

  • Linux daily common instructions and application summary


    A recent Alibaba ECs, CentOS 7, involves some basic Linux instructions. Here is a summary of some commonly used instructions in the build environment. If you are familiar with these instructions, you can basically use CentOS for daily operations. For more information, please refer to the “camp — help” provided by the system, which is […]

  • Linux operation git remote warehouse and local warehouse synchronization tutorial


    Create local warehouse and synchronize to remoteGit is a very powerful version management tool. In the next time, I will talk about the introduction of GIT: how to create a git warehouse locally and synchronize my local code to the remote. This tutorial is operated on the Mac. If your system is Linux, the operation […]

  • How does CentOS view user related file commands?


    1. User management 2. user group 3. Authority allocation 1、 To view user related file commands: 2.more 3.head /etc/passwd #View the top ten lines of the file 4.head – 2 / etc / passwd – view the first two lines of the file 5.tail /etc/passwd #View the last ten lines of the file 6. […]

  • Basic command explanation


    Catalog 1. Preface 2. Command operation syntax format of Linux system 2.1 create a directory / Oldboy 2.2 view directory / Oldboy 2.3 change current directory / location 2.4 print current working directory 2.5 create file or modify file timestamp (file attribute) 3.stat command 4.vim 4.1 view document content 4.2more command 4.3 Linux shortcut key […]

  • Introduction and command of variable scope in shell


    Preface It is well known that variables in a shell only work on the current process. To create a copy in a child process, use the export built-in command. Sometimes it’s convenient to use temporary variable syntax. Variable usage Shell variables can be defined anywhere, using = to separate variable names and variable values. =There […]

  • Which of the 7 most widely used Linux desktop environments is best for you


    Diversity should be one of the best features of Linux. Users can constantly try all kinds of favorite and fresh playing methods and tricks, and find out the most suitable application for themselves. Whether you are a new Linux person or not, the endless application and desktop environment may be too busy for us, especially […]

  • Special permission of CentOS system suid sgid sticky explanation


    1. What is special authority? We know the permissions are R, W, X. In fact, in addition to these three, there are special permissions. For example: [[email protected] ~]# ls -l /usr/bin/passwd                                      -rwsr-xr-x 1 root root 22960 Jul 17  2006 /usr/bin/passwd The permission bit can be found. There is an […]

  • Sample code of using shell script to segment nginx logs


    This article introduces the example code of using shell script to segment nginx logs, which is shared to you as follows: 1. Log format Default log format: Main log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘ $status $body_bytes_sent “$http_referer” ‘ ‘”$http_user_agent” “$http_x_forwarded_for”‘; For example, the default main log format records these items Remote IP remote […]

  • Install and use mutt mail client and configure mail alert function under Linux


    0. Before the official installation of muttCheck the two security components first.OPENSSL: Copy code The code is as follows: OpenSSL version – a ා check the installation and version information SASL (the system generally has its own): Copy code The code is as follows: rpm -qa | grep sasl Query as follows:cyrus-sasl-gssapi-2.1.23-15.el6_6.2.x86_64cyrus-sasl-devel-2.1.23-15.el6_6.2.x86_64cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64cyrus-sasl-plain-2.1.23-15.el6_6.2.x86_64cyrus-sasl-2.1.23-15.el6_6.2.x86_64If SASL is not […]

  • CentOS process resource usage high reason analysis command details


    1. To view the threads of a process: ps -eLf|egrep ‘gateserver|UID’ 2. Trace thread call: strace -p 15530 3. Count the calling CPU time of the function in the thread: strace -p 16334 -c Strace – P 15530 – O out.file output to out.file 4. Show only calls to recv functions: strace -p 5314 -f […]

  • How to switch from general user to root user in CentOS


    1. Open the terminal, and the prompt is “$”, indicating that the user is an ordinary user. At this time, enter Su directly, enter the root password, enter, and you can switch to root. At this time, the prompt changes to “ා”. Be careful,When entering the password, the terminal does not display, and every time […]