Linux 发行版

Fedora, RedHat(CentOS), SUSU, Debian(Ubuntu, Mint), Gentoo, LFS(Linux From Scratch)

Command

目录管理(先前节数已经讲)

ls、cd、pwd、mkdir、rmdir、tree

文件管理(先前节数已经讲)

touch、stat、file、rm、cp、nano、mv

日期时间(先前节数已经讲)

date、clock、hwclock、cal

查看文本

cat、tac、more、less、head、tail

文本处理

cut、join(用得不多)、sed、awk

文本排序

sort、uniq

文本统计

wc

字符处理

tr

detail of Command

查看文本

cat concatenate(V.连接) files and print on the standard output

-n number all output lines

-A --show-all

-E display $ at end of each line 行结束符

tac concatenate and print files in reverse(反转)

more  file perusal filter for crt viewing(和less区别到end会退出而less不会)

less opposite of more

head  output the first part of files

tail output the last part of files

-f   output appended data as the file grows; -f, --follow, and --fol-

low=descriptor are equivalent 查看文件尾部,等待显示后续追加内容

head/tail -n output the first/last N lines

文本处理

cut  remove sections from each line of files

-d  use DELIM instead of TAB for field delimiter(定界符)

-f  select only these fields;

文本排序

sort  sort lines of text files

-n  compare according to string numerical value

-r  reverse the result of comparisons(比较)

-t  use SEP instead of non-blank to blank transition(字段分隔符)

-k start a key at POS1, end it at POS2 (origin 1)(从哪里开始排序)

-u 去除重复 with  -c,  check  for  strict ordering; without -c, output

only the first of an equal run

-f fold lower case to upper case characters(折叠大小写 按字翻译哈哈)

uniq report or omit repeated lines(显示相邻重复的行)

-d only print duplicate(重复) lines

-c prefix(前缀) lines by the number of occurrences 显示重复行次数

文本统计

wc print the number of newlines, words, and bytes in files

-c print the byte counts

-l print the newline counts

-w print the word counts

-L print the length of the longest line

字符处理

tr translate or delete characters

用法示例: tr 'a-z' 'A-z' < /etc/passwd   将此文件里的小字转换为大写 <此符号以后会讲

-d delete characters in SET1, do not translate

Ctrl+c 中断当前程序

Shift+Page up/down 在终端里翻页(有限会有一部分被删除)

本文转自Winthcloud博客51CTO博客,原文链接http://blog.51cto.com/winthcloud/1856977如需转载请自行联系原作者

Winthcloud

菜鸟学Linux 第007篇笔记 简单命令的使用讲解(文本、时间、目录)相关推荐

  1. 菜鸟学Linux 第044篇笔记 算法和私有CA

    菜鸟学Linux 第044篇笔记 算法和私有CA 证书吊销列表CRL(Certificate Revocation List ) 如何解决私钥丢失 PKI: Public Key Infrastruc ...

  2. windows pxe 安装linux,菜鸟学Linux 第103篇笔记 pxe自动化安装linux

    菜鸟学Linux 第103篇笔记 pxe自动化安装linux 内容总览 linux的系统安装 kickstart文件的组成部分 DHCP (Dynamic Host Configuration Pro ...

  3. 菜鸟学Linux 第033篇笔记 bootloader,inittab

    菜鸟学Linux 第033篇笔记 bootloader,inittab Linux 系统自启动流程 PC OS (Linux) POST-->BIOS(Boot Sequence)-->M ...

  4. 菜鸟学Linux 第095篇笔记 MySQL 5.6主从复制

    菜鸟学Linux 第095篇笔记 MySQL 5.6主从复制 内容总览 主从服务器复制过滤 MySQL 5.6 简单主从模式配置步骤 mysql-proxy 主从服务器复制过滤 主服务器配置 基于数据 ...

  5. 菜鸟学Linux 第107篇笔记 zabbix概念和安装

    菜鸟学Linux 第107篇笔记 zabbix概念和安装 内容总览 SNMP catti nagios zabbix Various Monitoring Functions Zabbix Agent ...

  6. 菜鸟学Linux 第050篇笔记 dhcp

    菜鸟学Linux 第050篇笔记 dhcp DHCP (Dynamic Host Configuration Protocol) 早期bootp (boot protocol) lease Clien ...

  7. 菜鸟学Linux 第090篇笔记 corosync+drbd+mysql

    菜鸟学Linux 第090篇笔记 corosync+drbd+mysql 内容总览 上节回顾 DRBD (Distributed Replicated Block Device) 分布式复制块设备 配 ...

  8. 菜鸟学Linux 第052篇笔记 httpd-install and section2

    菜鸟学Linux 第052篇笔记  httpd-install and section2 apache 17years NCSA, httpd A Patchey Server = Apache FS ...

  9. Linux 日志 klogd,菜鸟学Linux 第038篇笔记 日志系统 syslogd,klogd

    菜鸟学Linux 第038篇笔记 日志系统 syslogd,klogd Linux上的日志系统 syslog开源 syslog-ng  商业版 日志系统 syslog syslog 服务 syslog ...

最新文章

  1. iOS8.0 之后指纹解锁
  2. wordpress jquery加载如何实现?
  3. 吴恩达邀请9位AI大牛畅想2020:李开复看好医疗教育,LeCun强调自监督学习
  4. ASP.NetCore+VUE 实现学生成绩管理系统(一)
  5. 计算机表格复制粘贴后不变,excel表格复制粘贴后格式不变
  6. 关于mysql ERROR 1045 (28000)错误的解决办法
  7. html轮播文字上下轮播,js、jQuery实现文字上下无缝轮播、滚动效果
  8. 逆天通用水印扩展篇~新增剪贴板系列的功能和手动配置,卸除原基础不常用的功能...
  9. CAD怎么快速用计算机加面积,CAD如何利用“命令”快速计算图形面积
  10. Android 获取毫秒时间戳
  11. 高仿绚丽彩虹悬浮音乐播放器html5源码
  12. ANSYS ICEM CFD三维非结构网络生成实例——教室全新风送风与排风
  13. 介绍下微信刷票被禁了怎么办及微信拉票怎么人工买票的方法
  14. 抢抓双城发展机遇 新川代表团赴渝交流
  15. Go开发之如何破解安装GoLand编译器?
  16. 一些概念名称的来历札记
  17. c++ 使用nacos_Nacos入门
  18. GroupingComparator 自定义分组
  19. (最新react-native-0.59.5) 如何将ReactNative项目集成到现有得Android项目中(两种实现方法之一)
  20. [软件工具]OCR批量识别图片提取文字信息提取号码编号单号软件使用教程

热门文章

  1. linux安装oem环境,【OEM】 oem12c_install_for_linux
  2. js控制复选框选中显示不同表单_Vue之 表单
  3. gis影像格式img转为ecw_微图影像地图导出拼接大图的参数说明
  4. java设置text默认内容_Eclipse自定义内容辅助基于默认Java内容辅助结果
  5. form-data php,PHP 模拟form-data上传文件
  6. c++类模板(c++细节篇十一)
  7. 使用yangtools将yang文件转化成java
  8. 【项目管理】工具--数据收集
  9. 【考前必知】软考考前注意事项
  10. 让外网访问内网Ngrok工具