• Setting the display property of terminal text under Linux


    Linux uses ANSI escape sequences to set the display attributes of terminal text, such as the foreground and background colors of text, in the form ofESC[{parameters…}m ESC is used to guide the escape sequence. Octal, decimal and hexadecimal are represented as 033 / 27 / 0x1b respectively, usually in the form of a backslash (”) […]

  • Introduction to Linux basic commands II: input and output


    When we first introduced the command-line interface, we described the CLI as follows: an interface to interact with a computer by typing a text command in a terminal window.Here is a brief introduction to the concept of terminal,ConsoleAndterminalIt’s all hardware. amongConsole(console) is a device that the computer itself has. A computer has only one console. […]

  • Linux basic command introduction 3: file search and others


    1. Linux contains a large number of files. For file search, Linux providesfindCommand. findIs a very effective tool, it can traverse the target directory or even the entire file system to find some files or directories: find [path…] [expression] amongexpressionThere are three types:options、testsandactions。 Multiple expressions are separated by operators. When operators are omitted, the default […]

  • Tomcat start stop and other related operation scripts


    The following paste some convenient operation scripts of single machine and multi instance deployment tomcat, which is very convenient in actual use. Start script: (you need to set up your “Tomcat” dir and your “deploy” dir accordingly) #!/bin/bash source /etc/profile export CATALINA_HOME=YOUR_TOMCAT_DIR if echo $1 | grep -q “YOUR_DEPLOY_DIR” then export CATALINA_BASE=${1%/} else export CATALINA_BASE=YOUR_DEPLOY_DIR/${1%/} […]

  • The hacker counterattack of Manon (3)


    Preface Recently, the server has been used as a chicken by hackers. It has been tossed twice before and after (hacker counterattack of minon, hacker counterattack of minon (II)). Virus files are checked and the default configuration of the server is modified. It is found through observation that it is still not completely cleaned up. […]

  • Introduction to Linux basic commands IV: text editing VIM


    This article introduces the general usage of vim (version 7.4) VIM is a powerful text editor and an enhanced version of vi. vim [options] [file ..] The most common commands for editing a file with VIM are: vim file Where file can be a new file or an existing file. Such a command will open […]

  • Introduction to Linux basic commands 5: text filtering grep


    In Linux, you often need to filter the text or output content. The most commonly used filtering command isgrep grep [OPTIONS] PATTERN [FILE…] grepRetrieve each line of input by line if the input line contains a patternPATTERN, the line is output. TherePATTERNIs a regular expression (refer to the previous article, this article will take grep […]

  • Time saving linux commands


    Some netizens asked quora, “what are the time-saving tips that every Linux user should know?” Joshua levy usually works on the Linux platform, and he has accumulated a lot of practical command-line skills. He selects a part of his reply. For technical users, these skills are very important or practical, but not many people know […]

  • Cancel the setting that the file name with special symbol is enclosed by single quotation mark when LS column directory file


    Coreutils automatically turns on an annoying setting after a certain version (my version is 8.25)ls -lWhen listing directories, the file names with spaces will be surrounded by single quotation marks by default. It looks extremely awkward. You need to add an environment variable to ~ /. Zshrc to cancel this function: export QUOTING_STYLE=literal ls

  • Linux basic command introduction 6: Network


    This article will talk about network related commands. The author assumes that the reader has the basic knowledge of TCP / IP protocol stack. For related commands and their output, only its basic usage and general description are introduced, and the specific protocol will not be explained in detail. Nowadays, the network is undoubtedly very […]

  • Introduction to Linux basic commands 7: network transmission and security


    This chapter then introduces the network related commands 1、wgetFile download tool wget [option]… [URL]… wgetIt is a non interactive Downloader, supports HTTP, HTTPS and FTP protocols, and can also use a proxy. The so-called “non interactive” means that you can start awgetDownload the task and exit the system,wgetIt will exit after the download (or exception) […]

  • Introduction to Linux basic commands eight: text analysis awk


    awkIt is a pattern scanning and processing language, which is a very powerful tool when analyzing and processing data. awk [options] ‘pattern {action}’ file… awkThe working process of is as follows: read the input (standard input or file) by line, for compliance modepatternLines of, executeaction。 WhenpatternOmit to match any string; whenactionIf omitted, it means execution'{print}’; […]