Article Tags
Home Technical Articles Development Tools
How to save vim without exiting in linux

How to save vim without exiting in linux

In Linux, vim can use the ":w" or ":w!" command to save without exiting. Vim is a text editor in Linux. Using the ":w" command, you can directly save the file without exiting the editor. Use the ":w" command to save the file without exiting. w!" command can force the file to be saved when the file is read-only and does not exit editing. "!" means forced.

Jul 14, 2022 pm 03:35 PM
linux
What to do if there is not enough tmp space in Linux

What to do if there is not enough tmp space in Linux

Solution: 1. Use "vim /etc/fstab" to redistribute the tmp directory size; 2. Add "tmpfs /tmp tmpfs nodev,nosuid,size=required space size 0 0" to change the tmp file to the specified space size; 3. After restarting, use "df -h" to view the changed tmp space size.

Jul 12, 2022 pm 03:22 PM
linux
what is group password in linux

what is group password in linux

In Linux, the group password is the password of the group administrator. The encrypted group password is saved in the "/etc/gshadow" file by default. The group password can be set or removed using the gpasswd command. Just execute the "gpasswd group name" command to enter the group password setting mode and enter the password twice; and execute the "gpasswd -r group name" command to remove the group password. Password, execute the "gpasswd -R group name" command to invalidate the group's password.

Jul 01, 2022 pm 05:13 PM
linux
What should I do if the linux vim command is missing?

What should I do if the linux vim command is missing?

Solution steps: 1. Open the terminal and execute the "yum search vim" command to search for all software packages containing the vim keyword from the yum source; 2. Execute the "sudo yum install vim-specify keyword" command to install the specified vim as needed. Keyword software package is sufficient.

Jul 01, 2022 pm 04:06 PM
linux
MySQL log management (summary sharing)

MySQL log management (summary sharing)

This article brings you relevant knowledge about MySQL. It mainly organizes issues related to log management, including error logs, general query logs, binary logs, etc. Let’s take a look at them together. I hope it will be helpful to everyone. .

Jun 23, 2022 pm 12:26 PM
mysql
What is the rpm statement for installing jdk in linux?

What is the rpm statement for installing jdk in linux?

The rpm statement for installing jdk in Linux is "rpm -ivh jdk-...-linux-x64.rpm"; the rpm package is a management program in Linux that installs the required software on the host through database management. Can realize and manage the installation, viewing and deletion of software.

Jun 20, 2022 pm 05:05 PM
linux
What other Linux file viewing commands are there besides vi?

What other Linux file viewing commands are there besides vi?

In addition to vi, other commands for viewing files: 1. The cat command can display the contents of a text file, with the syntax "cat [-n] file" or "cat file1 file2 >file3"; 2. The tac command can display the file contents in reverse order. The syntax "tac file"; 3. The more command can display the text content in pages, the syntax is "more [+ starting line number] file"; 4. The less command can view the file content forward or backward; 5. The head command can Look at the beginning of the file.

Jun 16, 2022 pm 05:58 PM
linux
Do laravel scheduled tasks need to use cron?

Do laravel scheduled tasks need to use cron?

Laravel scheduled tasks need to use cron; if you want to execute all laravel tasks regularly in laravel, you need to add a cron entry on the server and add the "phppath project path/artisan schedule:run..." code to the root file.

Jun 02, 2022 pm 04:42 PM
Laravel
What is the difference between vi and cat in linux

What is the difference between vi and cat in linux

The difference between vi and cat: 1. cat is a text printing command, while vi is a text editor; 2. cat command is used to output file content information to the console, but cannot edit files, while vi command can output files Content, you can also edit (delete, find, replace) files.

May 25, 2022 pm 07:19 PM
linux
How to close em in oracle

How to close em in oracle

Method: 1. Use "emctl status dbconsole" to check the em status; 2. Use "emctl stop dbconsole" to stop em from running; 3. Use "emca -deconfig dbcontrol db-repos drop" to close em.

May 24, 2022 pm 03:57 PM
oracle
How to view mysql error log in linux

How to view mysql error log in linux

Method: 1. Use the "cd /usr/local/mysql/data" command to enter the data directory in the mysql installation directory; 3. Use the "ll" command to obtain the files in the directory and find the error log with the suffix ".err" ;3. Use "vim file with suffix err" to view the error log.

May 20, 2022 am 11:13 AM
linux
Why doesn't vim display line numbers in Linux?

Why doesn't vim display line numbers in Linux?

In Linux, vim can use ":set nonu" to prevent the line number from being displayed during the editing process; the function of this command is to cancel the line number, or you can use the ":setnu" command to make the line number display again. If the configuration file ".vimrc" exists, you can add a line "set nonu" to the file so that the file does not display the line number every time.

May 17, 2022 am 10:51 AM
linux
How to modify the maximum number of connections in mysql in linux

How to modify the maximum number of connections in mysql in linux

Method: 1. Use "set GLOBAL max_connections=number of links" to temporarily modify the maximum number of connections; 2. Use "vim /etc/my.cnf1" to modify the content of "max_connections", save and restart the mysql service to permanently modify the maximum number of connections. number.

May 16, 2022 pm 04:19 PM
linux
What does the account file of the Linux system consist of?

What does the account file of the Linux system consist of?

The account file consists of 5 parts: 1. "/etc/passwd", the system user configuration file, which stores the basic information of all users in the system; 2. "/etc/shadow", which stores the password information of users in the system; 3. "/ect/group", the user group configuration file, stores all the information of the user group, etc.

May 13, 2022 pm 04:25 PM
linux

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use