2021-10-12-linux Foundation

linux command: it is essentially a program. Many programs are written in c language, such as python, java, c + +, ruby, php, go, etc [root@localhost ~]# Cat / etc / CentOS release to check the version of linux CentOS Linux release 7.6.1810 (Core) [root@localhost ~]# cali@cali:~$ cat /etc/issue stay Ubuntu Check the version of the system ...

Added by zalath on Thu, 17 Feb 2022 04:57:46 +0200

Programming three swordsmen in Shell regular expressions (grep, sed, awk)

preface: There are many kinds of text processors or text editors in Linux/UNIX system, including VIM editor and grep, which we have learned before. grep, sed and awk are text processing tools often used in shell programming, which are called three swordsmen of shell programming. 1, sed editor (1) Overview of sed editor sed is a flow editor ...

Added by justAnoob on Mon, 14 Feb 2022 14:14:42 +0200

Chapter 1 text processing tools for Shell topics (grep, cut, sort, uniq, tee, diff, paste, tr)

1. grep tool grep is a * * line * * filtering tool; Used to filter rows based on keywords Syntax and options Syntax: # grep [options] 'keyword' file name Common options: OPTIONS: -i: Case insensitive -v: Finds a row that does not contain the specified content,Reverse selection -w: Search by word -o: Print matching ke ...

Added by parka on Sat, 12 Feb 2022 06:15:21 +0200

Real high-level usage of vim (visual mode, last line mode, edit mode)

Real high-level usage of vim (visual mode, last line mode, edit mode) As a powerful, reliable and efficient text editor, vim is deeply loved by users who use Linux system. It is no exaggeration to say that they will not use vim text editor. Even if sed, awk and grep swordsmen use it again 6, they are helpless in the face of massive text conten ...

Added by nonso on Sat, 12 Feb 2022 01:58:38 +0200

How to configure vim (setting shortcut keys, customizing themes, installing plug-ins)

vim is a lightweight editor with a powerful group of plug-ins. Its powerful user-defined shortcut key function allows you to realize various editing operations without touching the mouse. Configuration directory of vim . vimrc is the configuration file of vim. Users need to modify this file to personalize vim vimrc configuration files are di ...

Added by ricmch on Sun, 06 Feb 2022 09:25:41 +0200

How can ssh copy text in vim remotely

For vim (neovim), I spend most of my time on remote machines. It's easy to copy text from remote ssh to local. If the copied content is small, you can directly select it with the mouse and copy it. The disadvantages are also shown: The format of the copied text has often changed. For example, the line number information has been added, and the ...

Added by dotancohen on Mon, 31 Jan 2022 06:10:41 +0200

Vim unit test plug-in

For more sharing, please visit my personal blog https://www.niuiic.top/ This paper introduces a flexible unit testing tool in vim. demand For large-scale projects, unit testing is essential. There are many ways to do unit testing in vim. For example, using the built-in terminal, write your own test script and pass asynctasks VIM et al. Howe ...

Added by b-real on Sat, 29 Jan 2022 04:01:24 +0200

[network socket] temperature reporting based on poll and epoll communication

poll function poll is a function in the character device driver in Linux. poll is essentially no different from select. It copies the array passed in by the user to the kernel space, and then queries the device status corresponding to each fd. If the device is ready, add an item to the device waiting queue and continue to traverse. If no r ...

Added by FunkyELF on Fri, 21 Jan 2022 16:21:31 +0200

Linux basic commands

1, Class notes: su - meaning and home directory meaning? When switching users, the configuration information of the user's home directory will be called / loaded. For example, if a command is configured for the user alone, only the user will recognize the command, and other users cannot. Relative path and absolute path St ...

Added by Craig_H on Sat, 08 Jan 2022 22:59:53 +0200

Windows Terminal configuration (Neovim configuration)

Significance of Neovim vim is a very useful editor (IDE) on linux. After all, it is highly configurableIf you are a linux developer, you can quickly adapt by switching to windowsAfter the configuration is completed, you can edit files directly in powershell through vim commands, focusing on problem solving and coding, reducing the frequency of ...

Added by ccalzaretta on Fri, 07 Jan 2022 02:37:52 +0200