<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>生活是美好的 - 命令</title>
    <link>https://leeyb.cn/forum.php?mod=forumdisplay&amp;fid=55</link>
    <description>Latest 20 threads of 命令</description>
    <copyright>Copyright(C) 生活是美好的</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 17 May 2026 05:08:49 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://leeyb.cn/static/image/common/logo_88_31.gif</url>
      <title>生活是美好的</title>
      <link>https://leeyb.cn/</link>
    </image>
    <item>
      <title>VIM使用方法（實戰）</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=104</link>
      <description><![CDATA[vim編輯器模式切換
命令模式、命令行模式、編輯模式

命令模式：
字符操作
i 當前插入
a 當前字符之後插入
o 下一行插入
x 向後刪除一個字符，相當於delete
u 撤銷一步
Ctrl+r 恢復上一步

行操作
刪除（剪切）1行：dd
刪除2行：2dd
刪除N行：Ndd

複製1行：yy
複製2行 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Tue, 19 Nov 2019 06:42:53 +0000</pubDate>
    </item>
    <item>
      <title>linux压缩和解压缩命令</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=102</link>
      <description><![CDATA[tar
  解包：tar zxvf filename.tar
  打包：tar czvf filename.tar dirname
gz命令
  解压1：gunzip filename.gz
  解压2：gzip -d filename.gz
  压缩：gzip filename
      .tar.gz 和  .tgz
      解压：tar zxvf filename.tar.gz
      压缩：tar zcvf filename.ta ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Wed, 23 Oct 2019 09:03:53 +0000</pubDate>
    </item>
    <item>
      <title>rsync</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=98</link>
      <description><![CDATA[Rsync命令参数详解

在对rsync服务器配置结束以后，下一步就需要在客户端发出rsync命令来实现将服务器端的文件备份到客户端来。rsync是一个功能非常强大的工具，其命令也有很多功能特色选项，我们下面就对它的选项一一进行分析说明。Rsync的命令格式可以为以下六种：

 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Tue, 15 Oct 2019 06:35:37 +0000</pubDate>
    </item>
    <item>
      <title>crontab定時任務</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=95</link>
      <description><![CDATA[cron 计划任务 子系统

作用:  计划任务主要是做一些周期性的任务，目前最主要的用途是定期备份数据

一、cron基础
=============================================================
# ps aux |grep cron |grep -v \'grep\'       //-v 反向选择
root      2936  0.0  0 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Tue, 15 Oct 2019 02:44:44 +0000</pubDate>
    </item>
    <item>
      <title>tar文件打包及壓縮</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=93</link>
      <description><![CDATA[文件打包及压缩
===========================================================
Demo：复制未打包的文件到远程主机：
# du -sh /etc
114M    /etc
# rsync -va /etc/ 192.168.5.32:/tmp        //将/etc下的所有文件...
# rsync -va /etc 192.168.5.32:/tmp         // ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Fri, 11 Oct 2019 09:10:42 +0000</pubDate>
    </item>
    <item>
      <title>centos7查看分区命令</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=92</link>
      <description><![CDATA[#查看當前所有磁盤分區
#查看分區]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Fri, 11 Oct 2019 06:04:51 +0000</pubDate>
    </item>
    <item>
      <title>netstat網絡命令</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=91</link>
      <description><![CDATA[netstat
# netstat -tnlp]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Thu, 10 Oct 2019 09:00:42 +0000</pubDate>
    </item>
    <item>
      <title>Linux VPS下SSH常用命令</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=81</link>
      <description><![CDATA[学习完如何使用Putty远程(SSH)管理Linux VPS，今天继续为VPSer新手们整理一篇关于Linux VPS下SSH常用命令，命令是Linux系统上的重中之重一定要多加练习并熟悉各个命令的参数，不知道使用方法时可以在命令后面加上--help了解该命令的参数。
目录操作：
rm -rf mydir /*删 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 07:51:55 +0000</pubDate>
    </item>
    <item>
      <title>htpasswd命令</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=80</link>
      <description><![CDATA[htpasswd命令是Apache的Web服务器内置工具，用于创建和更新储存用户名、域和用户基本认证的密码文件。
语法
htpasswd(选项)(参数)

选项
-c：创建一个加密文件；-n：不更新加密文件，只将加密后的用户名密码显示在屏幕上；-m：默认采用MD5算法对密码进行加密；-d：采用C ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 07:44:28 +0000</pubDate>
    </item>
    <item>
      <title>vim默認行號</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=78</link>
      <description><![CDATA[##在最後一行添加]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 07:38:44 +0000</pubDate>
    </item>
    <item>
      <title>rsync通过ssh同步方法</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=77</link>
      <description><![CDATA[server端配置   client端配置
本文介绍通过ssh方式使用rsync同步
server和client都是centos系统
server端配置
生成key，一直回车即可
安装rsync
client端配置

生成key，一直回车即可

将/root/.ssh下的公钥id_rsa.pub内容拷贝到server端下/root/.ssh/authorized_keys中 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 07:32:42 +0000</pubDate>
    </item>
    <item>
      <title>locate 命令安装</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=76</link>
      <description><![CDATA[1、运行locate


-bash: locate: command not found#提示找不到命令

2、安装

3、执行
locate: can not stat () `/var/lib/mlocate/mlocate.db\': 没有那个文件或目录

4、初始化

5、过几分钟再执行就可以执行locate找到相应的文件了


 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 07:26:15 +0000</pubDate>
    </item>
    <item>
      <title>Linux命令行下访问网站</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=72</link>
      <description><![CDATA[1.CURL访问

例子 ：
注意：这种访问只会直接读取网站HTML代码出来


2.elinks访问
（1）安装elinks
（2）直接返回纯文字]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 07:08:32 +0000</pubDate>
    </item>
    <item>
      <title>Linux 中查找最大的 10 个文件</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=69</link>
      <description><![CDATA[方法1：
详解：
[*]find：在目录结构中搜索文件的命令
[*]/：在整个系统（从根目录开始）中查找
[*]-type：指定文件类型
[*]f：普通文件
[*]-print0：在标准输出显示完整的文件名，其后跟一个空字符（null）
[*]|：控制操作符，将一条命令的输出传递给下一个命令以供进 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 06:56:05 +0000</pubDate>
    </item>
    <item>
      <title>linux快速清空文件 比如log日志</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=65</link>
      <description><![CDATA[]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 06:44:39 +0000</pubDate>
    </item>
    <item>
      <title>快捷鍵</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=49</link>
      <description><![CDATA[crtl + c : 中断
ctrl + d : 中止输入 exit |logout
ctrl + l : 清屏  clear
ctrl + z : 把当前任务调至后台(暂停状态)   
jobs： 查看后台任务
fg 将后台中的命令调至前台继续运行
fg　任务编号
bg 将一个在后台暂停的命令，变成在后台继续执行
bg 　任务编号
ctrl + k ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Fri, 27 Sep 2019 08:59:36 +0000</pubDate>
    </item>
    <item>
      <title>rpm命令用法</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=48</link>
      <description><![CDATA[查询指定包是否安装，若安装显示包信息查询所有关于ntfs的软件包
查询ntfs-3g包安装了哪些文件
查询该文件属于哪个rpm包
查询包的information信息
查询某个包安装的配置文件
查安装的帮助文档
卸载软件包


 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Fri, 27 Sep 2019 08:52:51 +0000</pubDate>
    </item>
    <item>
      <title>useradd</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=47</link>
      <description><![CDATA[useradd                --新建用户

        useradd username
        useradd [-c|-d|-g|-G|-s|-u|-m|-M]
                -c　新建用户时添加注解
                -d　指定用户的家目录
                -g　指定用户的主组
                -G　辅助组
           ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Fri, 27 Sep 2019 08:50:51 +0000</pubDate>
    </item>
    <item>
      <title>netstat命令</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=46</link>
      <description><![CDATA[netstat命令各个参数说明如下：


　　-t : 指明显示TCP端口


　　-u : 指明显示UDP端口


　　-l : 仅显示监听套接字(所谓套接字就是使应用程序能够读写与收发通讯协议(protocol)与资料的程序)


　　-p : 显示进程标识符和程序名称，每一个套接字/端口都属于一个程序 ...]]></description>
      <category>命令</category>
      <author>liyb</author>
      <pubDate>Fri, 27 Sep 2019 08:50:04 +0000</pubDate>
    </item>
  </channel>
</rss>