随笔分类 - Linux 命令
Linux basic command
摘要:参考:Linux命令——ln Linux readlink and realpath Command Tutorial for Beginners (with Examples) 简介 ln命令允许你在文件之间创建链接,readlink命令和realpath命令则允许你解析文件之间的这些链接 rea
阅读全文
摘要:参考:Linux id Command Tutorial for Beginners (5 Examples) Linux id Command - Print user ID and group ID information
阅读全文
摘要:参考:8 LSMOD, RMMOD, MODPROBE, AND MODINFO COMMAND EXAMPLES IN LINUX Linux lsmod command 简介 lsmod显示(或“列出”)Linux内核中modules 的状态。lsmod十分简单,没有选项参数:它很好地格式化文件
阅读全文
摘要:参考:5 UNIX / Linux modprobe Command Examples Linux modprobe command 简介 modprobe用于向Linux Kernel添加 或 移除 kernel modules。 kernel modules以.ko作为扩展名。 'modprob
阅读全文
摘要:参考:9 Linux ethtool Examples to Manipulate Ethernet Card (NIC Card) Fun with ethtool 简介 ethtool允许你修改Ethernet adapter配置,并且这种修改只适用于physical ethernet adap
阅读全文
摘要:参考:7 Linux lspci Command Examples to Get PCI Bus Hardware Device Info 简介 lspci可以看成“ls” + “pci”。lspci会显示出服务器PCI总线上所有信息,除了总线相关的信息,PCI上面挂载的设备(eg 网卡、声卡、RA
阅读全文
摘要:转自:灵活使用getconf命令来获取系统信息 简介 getconf本身是个ELF可执行文件,用于获取系统信息 用法 getconf -a可以获取全部系统信息 对于这个命令,记住几个常用的信息获取方法就行 getconf PAGE_SIZE 查看系统内存分页大小 getconf LONG_BIT 看
阅读全文
摘要:参考:Linux and Unix fc command tutorial with examples Linux fc and history commands 简介 fc命令用于列出,编辑和重新执行先前输入到交互式shell中的命令。 fc命令是buildin的,意味着fc来自shell而不是操
阅读全文
摘要:20 Funny Commands of Linux or Linux is Fun in Terminal 17 Fun Linux Commands to Run in the Terminal
阅读全文
摘要:参考:Linux watch Command Tutorial for Beginners (5 Examples) 前言 有的时候我们想重复执行某一命令,通过该命令的输出进而获知系统某些信息。watch命令本质上是允许你重复执行某一个命令(默认2s执行一次),除非你中断他。这让我想起了free命令
阅读全文
摘要:参考:Linux kernel buffer ring Linux dmesg Command Tutorial for Beginners (5 Examples) 7 ‘dmesg’ Commands for Troubleshooting and Collecting Information
阅读全文
摘要:前言 systemctl本身的意义并不仅仅是一个命令那么简单,他标志着SysV时代的终结,Systemd时代的开始。CentOS 7.X系列已经抛弃SysV,全面拥抱Systemd这个init system。由于新技术的引入,传统Linux启动流程,从BIOS->MBR->bootloader->k
阅读全文
摘要:参考:Linux taskset Command Tutorial for Beginners (with Examples) 简介 taskset命令用于设置进程(或 线程)的处理器亲和性(Processor Affinity),可以将进程(或 线程)绑定到特定的一个 或 多个CPU上去执行,而不
阅读全文
摘要:参考:Linux tree Command Tutorial for Beginners (6 Examples) 简介 Linux tree命令用于以树状图列出目录的内容。 执行tree指令,它会列出指定目录下的所有文件,包括子目录里的文件。 用法 无参数,列出当前目录下字目录、文件 然而这个输出
阅读全文
摘要:参考:10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories 前言 du(Disk Usage),用于查看计算机上文件和目录的磁盘使用情况。 命令参数 du [选项] 文件或目录名称 -a :列出所
阅读全文
摘要:参考:12 Useful “df” Commands to Check Disk Space in Linux 简介 df用于查看文件系统磁盘空间使用情况。 df 读取的数据几乎都是针对一整个文件系统,因此读取的范围主要是在 Superblock 内的信息, 所以这个命令显示结果的速度非常的快速。
阅读全文
摘要:简介 e2fsck字面意义上理解时,Ext2 FileSystem Check,但他实际上不仅仅对Ext2有用,对Ext家族都有用,即Ext2/3/4d都也可以使用。 5 UNIX / Linux e2fsck Command Examples
阅读全文
摘要:参考:Linux磁盘管理——Ext2文件系统 简介 dumpe2fs用于查询 Ext 家族 superblock以及GDT(Group Descriptor Table,块组描述符表) 信息。 用法 dumpe2fs [-bh] 设备文件名 选项与参数 -b :列出保留为坏轨的部分(一般用不到)-h
阅读全文
摘要:参考:Rsync (Remote Sync): 10 Practical Examples of Rsync Command in Linux How to Sync Files/Directories Using Rsync with Non-standard SSH Port How to Us
阅读全文
摘要:参考:A Step-By-Step Guide to Using the Linux sync Command 前言 数据只有被读入内存才能被CPU所处理,但是数据又常常需要由内存写回磁盘当中(例如储存的动作)。 由于硬盘的速度太慢(相对于内存来说),如果常常让数据在内存与硬盘中来回写入/读出,系统
阅读全文

浙公网安备 33010602011771号