Linux Common management commands

Source: Internet
Author: User

Directory management: LS, CD, pwd, mkdir, rmdir, tree, tree: #查看目录树mkdir: #创建空目录-P: #创建子目录-V: #详细信息 install-d: #创建目录 rmdir (remove D Rictory): #删除空目录
File management: Touch, stat, file, CP, MV, Nano, install: #文件创建和删除touch: #创建空文件stat: #查看时间戳file: #查看文件内容类型nano: #文件编辑器vi: #文本编辑器, File can be created RM: #删除文件-I: #提示是否删除-F: #不提示-r: #递归删除目录下所有文件 CP: #复制和移动文件-r: #复制目录, Recursive replication-F: #强行覆盖-P: #复制文件保留原有的所有 Permissions-A: #归档复制, commonly used for backup #一个文件到一个文件 #多个文件到一个目录 MV: #移动文件-F: #强制覆盖-T: #先目的在源
View files: Cat, TAC, more, less, head, tail, Cat: #连接并显示-N-etac: #倒序查看分屏显示: more: #向后翻less: Head: #查看前n行tail: #查看后n行-N 2: #查看前n行 or After 2 lines tail-f: #查看文件尾部, do not exit, wait to display new content appended to this file later
Text processing: Cut, join, SED, awk, cut:-D: #指定字段分隔符, default is space-F: #指定要显示的字段-F 1, 3: #分开显示1和3-F 1-3: #连续显示1到3
Text sort: sort-n: #数值排序-r: #降序-T: #字段分隔符-F: #排序时忽略字符大小写-U: #排序后相同的行只显示一次-K: #以哪个字段为关键字进行排序 uniq-d: #只显示 Duplicate row-C: #显示某一行重复的次数
Text statistics: WC (word count) lines, number of words, bytes (default display)-L: #行数-W: #单词数-C: #字节数
Character processing command: TR--: #转换或删除字符-D: #删除出现在字符集中的所有字符


This article is from the Linux OPS blog, so be sure to keep this source http://linuxdarker.blog.51cto.com/8340258/1548192

Linux Common management commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.