shell linux服务器中find命令查找文件后备份及删除 linux服务器中find命令查找文件后备份及删除 查找所有的sh文件, root@yansy:/home/yansy# find . -name "*.sh" -... 2024年04月30日 阅读 399 次浏览 发表评论 阅读全文
shell linux服务器中find命令的详细用法 find查找 i、grep "$str" $filename ii、echo|cat $str | grep 'str' iii、从文件夹里面查询出包含字符串'te... 2024年04月30日 阅读 405 次浏览 发表评论 阅读全文
shell linux服务器中find与条件查找文件 在linux服务器我们经常用find来查找文件 在查找文件时如何使用and与条件 比如查找所有扩展名不是.txt与.html的所有文件 MacBook... 2024年04月30日 阅读 418 次浏览 发表评论 阅读全文
shell 在mysql中如何执行shell命令 我们通过mysql命令行连接到mysql服务器后 这时候如何执行shell命令,比如我们想导入执行sql文件,我们想看下当前文件夹的sql文件的名称,这个时候如何操... 2024年04月30日 阅读 344 次浏览 发表评论 阅读全文
shell linux服务器如何创建虚拟硬盘 linux服务器中如何创建虚拟硬盘 创建一个4G大小的文件 cd /mnt/e dd if=/dev/zero of=fat32 bs=1G count=4 mkf... 2024年04月30日 阅读 323 次浏览 发表评论 阅读全文
shell shell命令find查找或条件 在linux中如何用find查找或条件 MacBook-Air:test yansy$ ls MacBook-Air:test yansy$ 1.jpg 1.txt... 2024年04月30日 阅读 469 次浏览 发表评论 阅读全文
vim vim编辑器替换命令 在linux服务器中我们使用vim来编辑文件,如何替换字符串,以下为常见的操作 1、将当前行的第一个mysql替换成我的mysql :s/mysql/我的mysql... 2024年04月30日 阅读 276 次浏览 发表评论 阅读全文
shell linux服务器中10几个小技巧 我们在使用linux服务器时,有一些小技巧很有用,我们不妨来看下 1、命令前面忘了加sudo, ctrl+a前面输入sudo 2、vim另存为文件 !w other... 2024年04月30日 阅读 284 次浏览 发表评论 阅读全文
服务器 linux服务器修改用户的所有组 linux服务器中如何修改用户的所有组 cat /etc/shadow 所有的用户 cat /etc/group 所有的组 usermod -a -G groupn... 2024年04月30日 阅读 262 次浏览 发表评论 阅读全文
php php中file_put_contents的使用方法 file_get_contents和file_put_contents是一对好基友,file_get_contents可以用来爬取网页的内容,file_put_co... 2024年04月29日 阅读 314 次浏览 发表评论 阅读全文