The OSI seven layer model and some common commands and rights management of Linux inherit the previous article

Source: Internet
Author: User

OSI seven-layer model


Application Layer: User interface

Presentation layer: Data representation, security, compression.

Session Layer: Establish, manage, abort session

Transport layer: reliable and unreliable transmission, error detection before transmission, flow control

Network layer: Logical address addressing for routing between different networks

Data Link layer: Group frame, hardware address addressing, error validation function


Physical layer: Transmission of bitstream between device and device, physical interface, electrical characteristics, etc.


Linux Common commands

1) CP Copy

CP Source file target Location

-R Copy Directory

-P Joint File attribute copy

-D If the source file is a linked file, copy the link property

-A equals-pdr

Example: CP aa/tmp/formerly copied

CP aa/tmp/bb renamed Copy

2) Cut or rename

Mv

MV Source File Destination location

Mv/root/aa/tmp

MV AA BB

Linux does not differentiate file types by extension, but with some exceptions


Three Rights Management

1 Permission Bits

-rw-r--r--1 root root 0 08-11 01:45 AA

The permission bit is 10 bits

First bit: Represents the file type

-Normal file

D catalog File

L Link File

Nine-bit master permission U master privilege g other person permissions O

R-Read 4

W Write 2

X execution 1

2 Modify Permissions

chmod

chmod u+x aa aa file owner plus execute permission

chmod u-x AA

chmod g+w,o+w AA

chmod U=rwa AA

chmod 755 AA

chmod 644 AA

4 Generic and Group commands

Chown user name filename Change file owner

Chown user1 AA user1 must exist

Chown user1:user1 aa Change Genus master simultaneous change group

Useradd User name Add user

passwd User Name setting password

CHGRP Group name File name modify the owning group of the file


This article is from the "title, Good Tangle" blog, please be sure to keep this source http://zhuangyi.blog.51cto.com/10089695/1638416

The OSI seven layer model and some common commands and rights management of Linux inherit the previous article

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.