零基础学习linux--2

本文介绍了Linux的基础操作,包括使用man命令获取帮助,通配符如*、?和[]的使用,特殊符号如分号、&和转移符号的含义,重定向功能的运用,如输出重定向、输入重定向和错误输出重定向,以及管道符号|的组合命令功能。此外,还提到了一些常用的快捷键,如Tab的自动补全和Ctrl+C的中断命令。
摘要由CSDN通过智能技术生成

一、man(Manual)

man [OPTION...] [SECTION] PAGE...
$ 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 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

二、通配符

1、*:用于表示任意长度的任何字符

实例:列出 /etc目录下所有的配置文件

$ ls -la /etc/*.conf
-rw-r--r--. 1 root root   55 Aug  8  2019 /etc/asound.conf
-rw-r--r--. 1 root root 1937 Mar 30 17:36 /etc/chrony.conf
-rw-r--r--. 1 root root 1285 Aug  9  2019 /etc/dracut.conf
-rw-r--r--. 1 root root  112 Aug  6  2019 /etc/e2fsck.conf
......

2、?:用于表示任意一个字符

实例:列出 /etc

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值