linux_2_23_lsmod

简介 lsmod命令 lsmod 在Linux中,lsmod命令用于列出当前加载的内核模块。内核模块是与内核相互独立的可加载程序,它们可以在运行时加载和卸载,以添加或删除特定的功能和驱动程序。 以下是lsmod命令的一般语法: 1 lsmod 使用lsmod命令时,它...
May 22, 2024 Linux LinuxCommand

linux_2_22_ar

简介 ar命令 ar ar命令,用于建立或修改备存文件,或者是从备存文件中抽取文件 ar可以集合许多文件,成为单一的备存文件。在备存文件中,所有成员文件皆保有原来的属性与权限 语法 ar [ -dmpqrtx ] [ cfosSuvV ] [ ...
May 22, 2024 Linux LinuxCommand

linux_2_21_wc

简介 wc命令 wc wc, 用于计算字数 利用wc指令可以计算文件的Byte数,字数或是列数,若不指定文件名称,或是所给予的文件名为-,则wc指令会从标准输入设备读取数据 语法:wc [-clw] [--help] [--version] [文件...] 参数...
May 22, 2024 Linux LinuxCommand

linux_2_20_mktemp

简介 mktemp命令 mktemp mktemp, 创建临时的文件或文件夹 参数: -d , --directory : create a directory, not a file -u , --dry-run : do not...
May 22, 2024 Linux LinuxCommand

linux_2_19_split

简介 split命令 split 功能:将单个tar文件切割成多个tar文件 命令:split -b 4000M -a 1 -d nvidia.tar nvidia.tar 参数: -b – 指定生成的分割包大小 -a – ...
May 22, 2024 Linux LinuxCommand

linux_2_18_nohup

简介 nohup命令 nohup 在Linux中,nohup命令用于在后台运行程序,并忽略掉终端断开的信号(SIGHUP)。它允许您在终端退出后继续运行程序,同时将程序的输出重定向到指定的文件中。 以下是nohup命令的一般语法: 1 nohup command [arg...
May 22, 2024 Linux LinuxCommand

linux_2_17_less

简介 less命令 less 在Linux中,less命令用于逐页浏览文本文件的内容。它是对more命令的改进,提供了更多的功能和灵活性。 以下是less命令的一般语法: 1 less [options] [file] 其中,options是可选的一些选项,file是要显...
May 22, 2024 Linux LinuxCommand

linux_2_16_more

简介 more命令 more more, 一次显示一页 在Linux中,more命令用于逐页显示文本文件的内容。它允许您按页浏览文本文件,以便更好地查看和阅读长篇文本。 以下是more命令的一般语法: 1 more [options] [file] 其中,opt...
May 22, 2024 Linux LinuxCommand

linux_2_15_read

简介 read命令 read 从命令行读取标准输入 读取输入,保存到变量 read -p "please input >>>" var 在Linux中,read命令用于从标准输入读取用户输入并存储到一个或多个变...
May 22, 2024 Linux LinuxCommand

linux_2_14_trap

简介 trap命令 trap 信号 1.1 简单使用 trap命令,用于指定在接收到信号后将要采取的动作。常见的用途是在脚本程序被中断时完成清理工作。 历史上,shell总是用数字来代表信号,而新的脚本程序应该使用信号的名字,它们保存在用#includ...
May 22, 2024 Linux LinuxCommand