How to stop / remove all containers of docker
How to stop/remove all containers of docker? View all container IDs:~ docker ps -a -q ; Stop all containers:~ docker stop $(docker ps -a -q);...
How to run Ubuntu system in docker
How to use docker to run the system? This article shares with you examples of searching image, starting image and building container, starting container, closing...
How to replace strings in files in the Linux command line
There are many ways to replace strings in Linux. You can use vim/vi to edit files, you can also use the sed command to replace,...
How to run a script in the background in Linux
This article shares how to run scripts in the background of linux, and how to use the shell's built-in commands to control scripts during running...
Create a file in linux, you can do this!
Create a file in linux, Examples:
use the linux touch command create an empty file;
use the linux vim/vi command;
use the linux cp...
How to merge/convert multiple files into one file in linux
Merge/convert multiple files in linux.Examples:
Merge multiple files into one file,
sort and deduplicate multiple files and import one file,
sort multiple files and export duplicate content to...
How to print tree directory structure in linux/unix
Print tree directory structure in linux. Print the tree directory structure using the tree command;
Print multilevel tree directory structure using the find and awk combined...
How to display the first line and the last few lines of a file in Linux
In linux, print the first line and the last few lines of the file. Print the first line and the last 10 lines of the...
How to count the number of lines of file in Linux
In Linux, Count the total lines number,Count the total number of non repeating lines,Count the total number of duplicate lines,Count the number of times specific...
How to use top sort by cpu and by memory in linux
top sort in linux. examples: top sort by CPU in linux, top sort by memory in linux, top sort by pid in linux, top command...
How to support uploading webp format image files in wordpress
webp upload in wordpress: In function.php, add the add_filter function to support webp format image upload, and add the preview function in the media library....
How to display images in wordpress after changing a new domain
WordPress domain replacement method:
1. Change "WordPress Address (URL)" and "Site Address (URL)" in wp_options;
2.Replace domain names in wp_posts table....
How to find and delete old linux files or directories
linux delete old files script,linux delete old files by date,linux delete old files cron, scheduled task delete files older than,find and delete files older than...
linux pkill/pgrep commands tutorial: pkill/pgrep syntax and examples
linux pkill/pgrep commands:
- Syntax
- Options
- Examples:
-- List all processes whose names contain SSH and pid
-- Kill all processes with a given partial name
--...
How to configure multiple sites on nginx and bind different domain names
A Linux server uses nginx and supports multiple domain names without affecting each other. Can save server resources and improve resource utilization....