Linux command- summary

本文详细介绍了Linux系统中常用的几个基础命令,包括mkdir用于创建目录,尤其是如何使用-p参数避免因父目录不存在而产生的错误;mount命令用于挂载设备,特别讲解了如何以只读模式或loop模式挂载设备;modinfo命令用于查询模块信息,如作者、描述、参数等;最后,df命令用于查看磁盘使用情况。这些命令是Linux系统管理员和用户日常操作中不可或缺的工具。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. mkdir

mkdir [-p] dirName

-p: 如果文件夹不存在就新建一个,如果不加的话,新建的文件所在的文件夹不存在就会报错

ex: mkdir -p /mnt/cdrom  在mnt下新建一个cdrom的文件夹,如果mnt不存在也会新建一个mnt,然后成功建立cdrom

 

2.mount

mount [-hV]
mount -a [-fFnrsvw] [-t vfstype]
mount [-fnrsvw] [-o options [,...]] device | dir
mount [-fnrsvw] [-t vfstype] [-o options] device dir
  • -o loop=:使用 loop 模式用来将一个档案当成硬盘分割挂上系统。

ex:

mount -h 能用help查看命令怎么用就够了

将 /dev/hda1 挂在 /mnt 之下。

#mount /dev/hda1 /mnt

将 /dev/hda1 用唯读模式挂在 /mnt 之下。

#mount -o ro /dev/hda1 /mnt

将 /tmp/image.iso 这个光碟的 image 档使用 loop 模式挂在 /mnt/cdrom之下。用这种方法可以将一般网络上可以找到的 Linux 光 碟 ISO 档在不烧录成光碟的情况下检视其内容。

#mount -o loop /tmp/image.iso /mnt/cdrom/dev/sr0是光驱的设备名,/dev/cdrom代表光驱

cdrom是sr0的软链接.你ll /dev/cdrom和ll /dev/sr0看看显示

所以挂载镜像时候用/dev/cdrom 就可以了

 

3. modinfo

语法

modinfo [-adhpV][模块文件]

参数

  • -a或--author  显示模块开发人员。
  • -d或--description  显示模块的说明。
  • -h或--help  显示modinfo的参数使用方法。
  • -p或--parameters  显示模块所支持的参数。
  • -V或--version  显示版本信息

4. df

查看磁盘信息

 

参考文章:https://www.runoob.com/linux/linux-comm-mount.html

https://www.runoob.com/linux/linux-comm-modinfo.html

https://www.runoob.com/linux/linux-command-manual.html

 

 

### ABR Summary Technical Documentation In the context of network configuration and management within Linux systems, certain parameters can significantly influence routing behavior. The `/proc` filesystem serves as an interface to kernel data structures, where various settings related to networking reside under `/proc/sys/net`. For specific configurations like `abr-summary`, which pertains more closely to OSPF (Open Shortest Path First) protocol implementations rather than generic net settings, one would typically find relevant options not directly inside this directory but through tools such as `iproute2` suite commands or by configuring OSPF daemons used with Linux-based routers. For detailed information about `abr-summary`, particularly concerning OSPF area border router summaries, exploring documentation associated with Quagga/Zebra or FRRouting projects proves beneficial since these provide comprehensive guides on how OSPF operates along with practical examples of summarization techniques applied at Area Border Routers (ABRs)[^1]. Summarizing routes helps reduce the size of link-state databases and speeds up convergence times across large networks while maintaining efficient path selection properties inherent to OSPF design principles. To configure route summarization using OSPF-specific utilities: ```bash router ospf area 0 range <network> <wildcard-mask> ``` This command instructs the OSPF process running on a device acting as an ABR to advertise summarized routes back into backbone areas from stub or totally stubby ones, thereby controlling what gets propagated throughout different sections of a hierarchical internetwork setup.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值