Hello, nice to meet you, many thanks for your approach,
I apologize, I should have expressed myself differently,
My current level is minimum basics, I know there are 3 separate blocks in the permissions, example: rwx-rwx-rwx
corresponds to a total right for groups, users, and “others” (I don't really have any explanation for the third block) maybe the others correspond to the public?
Read = 4
Write = 2
Execution = 1
-rwxrwxr-x 1 vibe staff 553 Mar 15 2021 test
Permission: (4+2+1) * 2 = (77) + (1) = 771
In your example it's interesting because there are only 2 blocks, I deduce that there is read/write/execution rights for the group (id1) and the user vibe?
drwxr-xr-x 3 vbe staff 96 June 2, 2021 test1
Permissions : (4+2+1+4) = 11 + (1+4) + (1) = 1151 / in this example the values exceed 7, I don't know at all how to react to this
This example is also very interesting... because I had never seen the "d" in the permissions, I don't know what it corresponds to..
For example 2: the group (id3) to which the user (vbe) is attached has an rwxr right, the user (vbe) has an xr right
In fact I don't know what the last block "x" corresponds to, I know that the first block is for the group, the other in the middle for the user, but for the third I don't know, if you can m Bringing your explanation would be great.
dr-xrws--x 3 vbe staff 96 Apr 23 2020 tst1
(4)+(1+4+2)+(1) = 471 / I didn't count the "d and the "s""
In this third example the user vbe has more rights than the group (id3), in the previous command the group had more rights than the user, but there is also another letter "s" that I did not have never seen before and whose functionality I don't know.
I started school at the beginning of September but I knew a little about the Unix world, but let's say that today we are really learning the "fundamentals", and I find that very interesting...
The commands I learned today (which I know by heart) are:
# id (find out my user's group details)
#mkdir (create directory)
#rmdir (delete a directory)
# / (go to root)
# cp (copy file)
# ls -l (show files in detail (users, groups, permissions)
# ls-1 (show online directories)
# head (display the contents of a file)
# chmod /directory (change the permissions of a directory or file)
# chmod 700 -R (change permissions recursively)
# chgrp -R 1000 /secret/ (assign a directory to a group with the group id)
I learned this command which I find brilliant:
# cd /apt/ && ls -l (&& to perform 2 commands on a single line)
#sudo tar -czf /home/archive.tar.gz home (to compress the /home/ directory)
# tar -ztvf archive.tar.gz (to show the content of the archive)
# df (show space disk used)
# top (show processus in execution)
# du /repository/ (show size of files)
# du -b /repository/ (show size on bytes of files)
The commands that are familiar to me are those that I listed above, but the "$PATH" I do not know, the "grep" I understand how it works but I have not yet assimilated them, basically apart from the commands that I mentioned to you I know nothing,
I hope this will give you an idea of where I am, I am just starting out and I am motivated to learn, if you have any advice to give me or explanations I am at your disposal,
looking forward to reading you,
Thanks again,