Summary of basic knowledge points of Linux group

Summary of basic knowledge points of Linux group

1. Basic Introduction of Linux Group

In Linux, every user must belong to a group and cannot be independent of the group. In Linux, each file has the concept of owner, group, and other groups.

1) Owner

2) Group

3) Other groups

4) Change the user's group

2. File/Directory Owner

Generally, the creator of the file. Whoever creates the file will naturally become the owner of the file.

1. View the owner of the file

1) Command: ls -ahl

2) Application examples:

2. Modify the file owner

Command: chown username filename

Application Examples

Require:

3. Group Creation

1. Basic commands

groupadd group name

2. Application Examples

4. Group of files/directories

When a user creates a file, the group to which the file belongs is the group to which the user belongs by default.

1. View the group of the file/directory

Basic command ls -ahl

2. Modify the group where the file is located

Basic command: chgrp group name file name

3. Application Examples

5. Other groups

In addition to the file owner and group, other users of the system are other groups of the file.

The above are all the knowledge points introduced this time. Thank you for your learning and support for 123WORDPRESS.COM.

You may also be interested in:
  • Summary of Linux user groups and permissions
  • Summary of 4 ways to add users to groups in Linux
  • Linux shell array and associative array usage examples
  • Basic usage of awk array in Linux

<<:  KTL tool realizes the method of synchronizing data from MySQL to MySQL

>>:  Vue3.x uses mitt.js for component communication

Recommend

Vue3.0 routing automatic import method example

1. Prerequisites We use the require.context metho...

Problems and solutions when installing MySQL8.0.13 on Win10 system

Operating system: Window10 MySQL version: 8.0.13-...

Implementing a simple student information management system based on VUE

Table of contents 1. Main functions 2. Implementa...

What is the file mysql-bin.000001 in mysql? Can it be deleted?

After installing MySQL using ports, I found that ...

Example of using Nginx reverse proxy to go-fastdfs

background go-fastdfs is a distributed file syste...

Unbind SSH key pairs from one or more Linux instances

DetachKeyPair Unbind SSH key pairs from one or mo...

How to use tcpdump to capture packets in Linux system

Let me look at the example code first: 1. Common ...

Steps to build a file server using Apache under Linux

1. About the file server In a project, if you wan...

Node uses koa2 to implement a simple JWT authentication method

Introduction to JWT What is JWT The full name is ...

setup+ref+reactive implements vue3 responsiveness

Setup is used to write combined APIs. The interna...

Div css naming standards css class naming rules (in line with SEO standards)

There are many tasks to be done in search engine o...

Vue Basics Introduction: Vuex Installation and Use

Table of contents 1. What is vuex 2. Installation...