linux 基础入门

首先推荐一个linux学习的网站
http://man.linuxde.net/


通配符
1. * 匹配任意多个字符(0~n)
[root@localhost tmp]# touch test.conf test01.conf test02.conf
[root@localhost tmp]# ls *.conf
test01.conf  test02.conf  test.conf
[root@localhost tmp]# ls t*.conf
test01.conf  test02.conf  test.conf
2. ?匹配任意一个字符(1)
[root@localhost tmp]# touch test.conf test01.conf test02.conf
[root@localhost tmp]# ls test0?.conf
test01.conf  test02.conf
[root@localhost tmp]# ls tes?.conf
test.conf
3. []匹配括号内的任意字符(- 表示范围)
[root@localhost mytmp]# touch 11.txt 12.txt 13.txt
[root@localhost mytmp]# ll
total 0
-rw-r--r--. 1 root root 0 Nov 29 03:41 11.txt
-rw-r--r--. 1 root root 0 Nov 29 03:41 12.txt
-rw-r--r--. 1 root root 0 Nov 29 03:41 13.txt
[root@localhost mytmp]# rm -f 1[123]*  #也可以rm -f 1[1-3]*
[root@localhost mytmp]# ls
获得命令帮助
  • command --help
  • man command
  • info command
linux文件类型

(-)普通文件
(d)目录
(l)符号链接
(c)字符设备文件
(b)块设备文件
(s)套接字
(p)命名管道

[root@localhost tmp]# ll
total 144
drwxr-xr-x. 2 root    root     4096 Nov 29 03:31 dir
drwx------. 2 xxjqr   xxjqr    4096 Nov 23 09:14 keyring-13s0ML
drwx------. 2 xxjqr   xxjqr    4096 Nov 29 02:41 keyring-R7Ie47
drwxr-xr-x. 2 root    root     4096 Nov 29 03:43 mytmp
文本文件查看命令
命令 功能
cat 显示文本内容
more 分页显示文本内容 空格翻页 Q停止浏览
less 同more,但是less还可以上下键移动浏览
head 从首显示文本内容 -n 可以显示指定行数
tail 同head从尾显示文本内容
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • linux资料总章2.1 1.0写的不好抱歉 但是2.0已经改了很多 但是错误还是无法避免 以后资料会慢慢更新 大...
    数据革命阅读 13,467评论 2 33
  • linux基础入门 linux是一门开源稳定性高实用的全文本的操作系统,一般实用于服务器,我们国家大多数互联网公司...
    数据革命阅读 439评论 0 0
  • 编程基础 计算机 = 硬件 + 软件 硬件包括 CPU、内存、硬盘、输入输出设备以及其他外部设备。软件是指计算机系...
    shallwego_阅读 395评论 0 2
  • 大家好我是49号一舍予婷子,首先通过简书很荣幸认识了铃铛子老师,并第一次报名参加了本期的训练营。对于我这种小白绘画...
    舍予婷子阅读 431评论 3 5
  • 安装:KeepAlived 查看IPVS模块是否已经编译到内核中 安装keepalived的依赖组件安装依赖组件 ...
    Lisong阅读 1,436评论 0 2

友情链接更多精彩内容