Skip to content

Commit

Permalink
Update swap.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shidahuilang authored Dec 10, 2023
1 parent 82618ee commit bab3409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swap.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# 提示用户输入交换文件大小
read -p "Enter the swap file size (e.g., 2G, 4G): " swap_size
read -p "请输入增加交换的大小(例如,2G,4G):" swap_size

# 创建交换文件
sudo fallocate -l $swap_size /swapfile
Expand Down

0 comments on commit bab3409

Please sign in to comment.