首页 > 系统相关 >Linux常用命令

Linux常用命令

时间:2022-12-01 14:57:07浏览次数:49  
标签:选项 do -- Linux 常用命令 命令 ls entries

1 命令分类

用于实现某一类功能的指令或程序命令的执行依赖于解释器程序(例如:/bin/bash)

内部命令:属于Shell解释器的一部分
外部命令:独立于Shell解释器之外的程序文件

2 命令格式

Linux命令的通用命令格式
命令字 [选项] [参数]
选项及参数含义
选项:用于调节命令的具体功能
以 “-”引导短格式选项(单个字符),例如“-l”
以“--”引导长格式选项(多个字符),例如“--color”
多个短格式选项可以写在一起,只用一个“-”引导,例如“-al”
参数:命令操作的对象,如文件、目录名等

3 命令详解

命令分类 命令
线上查询及帮助命令 help、man
文件管理  
文件传输  
文档编辑  
磁盘管理  
磁盘维护  
网络通信  
系统管理  
系统设置  
备份压缩  
其他  

 

 

 

 

 

 

 

 

 

 

 

 

3.1 线上查询及帮助命令

1、help

查询ls命令的使用方式

[root@localhost ~]# ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all                  do not ignore entries starting with .
  -A, --almost-all           do not list implied . and ..
      --author               with -l, print the author of each file
  -b, --escape               print C-style escapes for nongraphic characters
      --block-size=SIZE      scale sizes by SIZE before printing them; e.g.,
                               '--block-size=M' prints sizes in units of
                               1,048,576 bytes; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~

 

2、man

使用man命令查询ls的使用方式。

[root@localhost ~]# man ls
LS(1)                                      User Commands                                      LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries alphabet[m
       ically if none of -cftuvSUX nor --sort is specified.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --all
              do not ignore entries starting with .

       -A, --almost-all
              do not list implied . and ..

       --author
              with -l, print the author of each file

 

3.2 文件管理

 

3.3 文件传输


3.4 文档编辑
3.5 磁盘管理
3.6 磁盘维护
3.7 网络通信
3.8 系统管理
3.9 系统设置
3.10 备份压缩
3.11 其他

标签:选项,do,--,Linux,常用命令,命令,ls,entries
From: https://www.cnblogs.com/snow2021/p/16941387.html

相关文章

  • Linux一切皆文件指什么?Linux文件类型有哪些?
    在Linux中一切皆文件,普通文件是文件,目录是文件,硬件设备也是文件,套接字、网络通信等资源也都是文件。那么Linux中一切皆文件是什么意思?本文为大家详细介绍一下。Lin......
  • linux驱动移植-Nand Flash ONFI标准和MTD子系统【转】
    转自:https://www.cnblogs.com/zyly/p/16756273.html#_label0目录一、ONFI标准1.1ONFI标准1.2RawNand分类1.2.1单元层数1.2.2数据线宽度1.2.3数据采集模式......
  • GIT 常用命令,常见问题
    全局设置用户信息Gitglobalsetupgitconfig--globaluser.name"xxx"gitconfig--globaluser.email"[email protected]" 创建新仓储 Createanewrepositorygi......
  • linux ssh安全设置
    描述强制用户不重用最近使用的密码,降低密码猜测攻击风险检查提示--加固建议在/etc/pam.d/password-auth和/etc/pam.d/system-auth中passwordsufficientpam_unix.so这行......
  • Rocky Linux 9.0 安装与配置
    说明: 这不是一个详细步骤的RockyLinux9.0安装教程,建议参考:​​在ProxmoxVE上安装与配置RockyLinux8.3RC1​​ 一起阅读。木子这里采用ProxmoxVE7.2进行安......
  • Linux系统各种库/软件版本输出指令
    日常开发基于Linux系统(其实更多的是Ubuntu平台),平时总会遇到一些情况需要查看某个库或者软件的版本信息,在这里做一下简单的记录。1.查看glibc版本方法一:使用ldd指令cv......
  • shell linux环境下内存压测
    目录shelllinux环境下内存压测脚本详情用法shelllinux环境下内存压测公司在测试prometheus检测node节点内存,但是不允许修改prometheus的阈值,只能用脚本模拟内存增加来......
  • Linux下用rm误删除文件的三种恢复方法
    对于rm,很多人都有惨痛的教训。我也遇到一次,一下午写的程序就被rm掉了,幸好只是一个文件,第二天很快又重新写了一遍。但是很多人可能就不像我这么幸运了。本文收集了一些在Lin......
  • linux usb option,Linux -> usb-serial -> option.c 设备编译usb-serial支持多设备
    在使用LC6311或者SIM4100类似的通讯modem的时候,我们经常使用usbserial驱动来在linux环境下访问模块。但是,每次,我们插入特定模块到usb端口后,都需要手动加载usbserial模块,如......
  • 你知道不同U盘在ARM+Linux下的读写速率吗?
    优秀的产品离不开完善的测试,即使一个简单的USB接口也要确保稳定性及兼容性。不同的U盘在ARM+Linux板卡下的兼容性、速率怎么样呢?本文将为大家提供测试参考数据及详细测试步......