Blog 1: Make a full analysis of related small commands

Source: Internet
Author: User

Related Actions for files:
1. First you want to view, then the relevant command to view the file is:
Cat,tac,head,tail,more,less
This includes the option to view a file in multi-function to view the man document.
2. Then we know that a file is divided into two parts, part matadata, and the other part is the data we are familiar with.
Here's how to view the body data, and we'll show you how to manage Matadata commands:
Touch,stat
The understanding of timestamps, and the related use of their commands are not mentioned here.
3. Then we have to manage the files, including copy, move, delete and so on, then the commands used are:
Cp,mv,rm
4. The content of the file is then managed, which may include Byte, word count,
Partition the contents of the file, extract the key fields Ah, and the contents of the file to sort, go heavy ah, may use the command is:
Wc,sort,uniq
5. Action commands for file permissions (only the root user has permission to use)
Chown,chgrp,umask
6. When you need to search for files, the advanced tools you might use are:
Find,locate

Related operations for the directory:
1. First you want to see the contents of the directory, and switch directories and so on, then the relevant basic commands are:
Ls,cd,pwd
2. Then how to delete the directory:
Mkdir,rmdir,tree

For a command-related property query operation:
1. We know that most of the commands are used on computers, so how do we get to know a command:
Man,type,whereis (location command binary, source file, and Help file path),
Whatis (shows all the corresponding help manuals on the current system), which (displays the location of the binary file where the command is stored)

Related actions for user management:
1. Display the currently logged on user:
Who (shows the currently logged on user), W (shows the currently logged on user and the action being performed), WhoAmI (shows the user of the current operation)
2. Check the relevant information of the user, as well as the relevant commands for adding and deleting changes:
Id,useradd,userdel,su,usermod,passwd,chage
3. Actions related to user group management
Groupadd,groupdel,groupmod,newgrp

For system administration-related commands:
Shutdown:
Halt,poweroff,shutdown,init 0
Restart:
Reboot,shutdown,init 6

Related commands for file content editing:
Vim,,nano

For file system Management related commands:
1. Creating a file system
Mkfs,mke2fs,mkswap
2. View, manage, and set the relevant commands for the file system:
Blkid,e2label,tune2fs,dumpe2fs
3. File system Detection related commands
Fsck


This article is from the "Fante" blog, make sure to keep this source http://8755097.blog.51cto.com/8745097/1690272

Blog 1: Make a full analysis of the related small 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.