完美日用小工具: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
* zip 文件解压后文件名乱码 | |||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
unar -e GBK | unar -e GBK | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 20:54, 8 May 2024
- zip 文件解压后文件名乱码
unar -e GBK
- 显示所有进程,且只显示第12列
ps aux | awk '{print $11}'
- 让 apache2 中的 php 代码活起来
Include etc/apache2/conf.d/*.conf
# Add module for PHP 8
LoadModule php_module libexec/apache2/libphp.so
AddHandler php-script .php
- 复制东西进另一个地方
scp sth.zip host:~
- 给本目录下所有文件夹名字后加加一个g字符
#!/bin/bash
for dir in */;
do
if [ -d "$dir" ]; then
new_dir="${dir%*/}g"
mv "$dir" "$new_dir"
fi
done