Skip to content

Commit ec3c1d4

Browse files
Apply Prettier format
1 parent 68abb0f commit ec3c1d4

File tree

3 files changed

+75
-75
lines changed

3 files changed

+75
-75
lines changed

docs/.vuepress/config.js

Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -143,52 +143,50 @@ module.exports = {
143143
title: "Contribute",
144144
path: "/Contribute",
145145
children: [
146-
'/Comparison',
147-
'/FAQ',
148-
'/Howto',
149-
{
150-
title: 'Beginner Series',
151-
path: '/beginners/',
146+
"/Comparison",
147+
"/FAQ",
148+
"/Howto",
149+
{
150+
title: "Beginner Series",
151+
path: "/beginners/",
152+
children: ["/beginners/file-and-folder-permissions"],
153+
},
154+
{
155+
title: "openQA Guide",
156+
path: "/development/openQA",
157+
},
158+
{
159+
title: "Howto Series",
160+
path: "/series/",
161+
children: [
162+
"/series/LAMP-server",
163+
{
164+
title: "Nginx Series",
165+
path: "/series/nginx/",
152166
children: [
153-
'/beginners/file-and-folder-permissions',
154-
]
155-
},
156-
{
157-
title: 'openQA Guide',
158-
path: '/development/openQA',
159-
},
160-
{
161-
title: 'Howto Series',
162-
path: '/series/',
167+
"/series/nginx/NginxSeriesA01",
168+
"/series/nginx/NginxSeriesA02R8",
169+
"/series/nginx/NginxSeriesA02R91",
170+
"/series/nginx/NginxSeriesA02R92",
171+
"/series/nginx/NginxSeriesA03",
172+
"/series/nginx/NginxSeriesA04P1",
173+
],
174+
},
175+
{
176+
title: "System Series",
177+
path: "/series/system/",
163178
children: [
164-
'/series/LAMP-server',
165-
{
166-
title: "Nginx Series",
167-
path: '/series/nginx/',
168-
children: [
169-
'/series/nginx/NginxSeriesA01',
170-
'/series/nginx/NginxSeriesA02R8',
171-
'/series/nginx/NginxSeriesA02R91',
172-
'/series/nginx/NginxSeriesA02R92',
173-
'/series/nginx/NginxSeriesA03',
174-
'/series/nginx/NginxSeriesA04P1',
175-
]
176-
},
177-
{
178-
title: "System Series",
179-
path: '/series/system/',
180-
children: [
181-
'/series/system/SystemSeriesA01',
182-
'/series/system/SystemSeriesA02',
183-
'/series/system/SystemSeriesA03',
184-
'/series/system/SystemSeriesA03R8',
185-
'/series/system/SystemSeriesA03R9',
186-
'/series/system/SystemSeriesA04',
187-
'/series/system/SystemSeriesA05',
188-
]
189-
},
190-
]
191-
},
179+
"/series/system/SystemSeriesA01",
180+
"/series/system/SystemSeriesA02",
181+
"/series/system/SystemSeriesA03",
182+
"/series/system/SystemSeriesA03R8",
183+
"/series/system/SystemSeriesA03R9",
184+
"/series/system/SystemSeriesA04",
185+
"/series/system/SystemSeriesA05",
186+
],
187+
},
188+
],
189+
},
192190
"/Contribute",
193191
"/Contribute-to-AlmaLinux-Build-System",
194192
"/Contribute-to-Documentation",

docs/beginners/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: 'Beginner series'
2+
title: "Beginner series"
33
---
4+
45
###### last updated: 2024-09-10
56

67
# Beginner Series!
78

8-
Many new users come to Linux every day, and using AlmaLinux for the first time should be as simple as possible! This serie attempts to explain some of the base level conecepts in simple language so new users won't get immediately overwhelmed.
9-
10-
- [File and Folder Permissions on AlmaLinux](file-and-folder-permissions.md)
9+
Many new users come to Linux every day, and using AlmaLinux for the first time should be as simple as possible! This serie attempts to explain some of the base level conecepts in simple language so new users won't get immediately overwhelmed.
1110

11+
- [File and Folder Permissions on AlmaLinux](file-and-folder-permissions.md)
1212

1313
# Up next!
1414

1515
Once you've completed these guides, take a look at any of the other guides that interest you!
1616

1717
- [Nginx - from beginning to configured!](/series/nginx/)
18-
- [AlmaLinux System Series - various ways to interact with your AlmaLinux environment](/series/system/)
18+
- [AlmaLinux System Series - various ways to interact with your AlmaLinux environment](/series/system/)

docs/beginners/file-and-folder-permissions.md

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
title: "File and Folder Permissions"
33
---
4+
45
<hr>
56

6-
| 💡 | Experience Level | ⭐☆☆☆☆ |
7-
|--- | --------- | --------|
7+
| 💡 | Experience Level | ⭐☆☆☆☆ |
8+
| --- | ---------------- | ------ |
9+
810
###### last updated: 2024-09-10
911

1012
# Introduction
@@ -17,22 +19,22 @@ And because Linux is a multi-user operating system, file and folder permissions
1719

1820
There are two different methods for changing folder and file permissions on Linux:
1921

20-
- absolute - which requires users to know the numeric number associated with each permission.
21-
- symbolic - which only requires the use of letters associated with users (user, group, and other)  and permissions (such as read, write, and execute). 
22+
- absolute - which requires users to know the numeric number associated with each permission.
23+
- symbolic - which only requires the use of letters associated with users (user, group, and other)  and permissions (such as read, write, and execute). 
2224

2325
## Key Takeaways
2426

2527
To understand file and folder permission, there are three different types of owners:
2628

27-
- User - the user who is the primary owner of a file or folder.
28-
- Group - any user who's part of a group with access to a file or folder.
29-
- Other - anyone with access to the system.
29+
- User - the user who is the primary owner of a file or folder.
30+
- Group - any user who's part of a group with access to a file or folder.
31+
- Other - anyone with access to the system.
3032

3133
There are also three different types of permissions:
3234

33-
- Read - a user can view and/or copy the contents of a file.
34-
- Write - a user can modify the contents of a file.
35-
- Execute - a user can run the file (if it's an executable app or script).
35+
- Read - a user can view and/or copy the contents of a file.
36+
- Write - a user can modify the contents of a file.
37+
- Execute - a user can run the file (if it's an executable app or script).
3638

3739
The above permissions hold true for both files and folders.
3840

@@ -42,20 +44,20 @@ If you issue the command ls -l within a directory, you'll see all of your files/
4244

4345
Here's the breakdown of that listing:
4446

45-
* - - the file type
46-
* rw-rw-r-- - the permissions
47-
* 1 - number of hard links
48-
* jack - owner
49-
* jack - group
50-
* 0 - file size
51-
* July 16 13:04 - modification timestamp
52-
* testfile - the filename
47+
- - - the file type
48+
- rw-rw-r-- - the permissions
49+
- 1 - number of hard links
50+
- jack - owner
51+
- jack - group
52+
- 0 - file size
53+
- July 16 13:04 - modification timestamp
54+
- testfile - the filename
5355

5456
What we want to focus on is the permissions. In our example that's `rw-rw-r--`. How this breaks down is simple. The permissions section is broken into three sections: owner, group, and other, each of which can have read (r), write (w), and/or execute (x) permissions. So our example breaks down like this:
5557

56-
- owner has read and write permissions.
57-
- group has read and write permissions.
58-
- other has read permissions.
58+
- owner has read and write permissions.
59+
- group has read and write permissions.
60+
- other has read permissions.
5961

6062
If you see a `-` character, it means there are no permissions set for that. If the file had full permissions for all users, it would look like this:
6163

@@ -65,10 +67,10 @@ So, `rwx` for owner, `rwx` for group, and `rwx` for other.
6567

6668
The question now is, how do we change that? With the chmod command, which has two different modes: absolute and symbolic. The easiest method is symbolic. Why? With absolute mode, you have to remember the following:
6769

68-
- read permission = 4
69-
- write permission = 2
70-
- execute permission = 1
71-
- no permission = 0
70+
- read permission = 4
71+
- write permission = 2
72+
- execute permission = 1
73+
- no permission = 0
7274

7375
To change the permission in absolute mode, you add the permissions you want for each group. For example, if you want owner to have `rwx` permission, the total is 7. If you wanted group to have read and write permission, the total is 6, if you wanted to give other only read permission, the total is 4. String them together and you get 764. To make that change, the command would be:
7476

@@ -124,4 +126,4 @@ The above command would change the user ownership to olivia. If you want to chan
124126

125127
`chown olivia:dev1 testfile`
126128

127-
And that is the basics of file and folder permissions in AlmaLinux. This skill will come in very handy throughout your career as a Linux user or admin.
129+
And that is the basics of file and folder permissions in AlmaLinux. This skill will come in very handy throughout your career as a Linux user or admin.

0 commit comments

Comments
 (0)