Learn basic Linux machine commands| Part-6 | Punjabi | AWS

Опубликовано: 17 Июль 2026
на канале: ComputeWithAman
30
3

Hi all,

Please find below list of commands used in this video:-
-----------------------------------------------------------------------------------------------------
usermod -g groupname username
---------------------------------------------------
24. chmod ---------- chmod adds permissions from files or directories -------- chmod entity+permissiontype ----------

chmod u+r fileName (enter) ---------------- make executable for you
chmod g+rxw fileName (enter) -------------- add read write execute permissions for the group


u - user
g - group
o - other/world
a - all

r - read
w - write
x - execute


--------------------------

chmod a-rwx fileName (enter) ---- To remove all permissions for all users

chmod u+r fileName (enter) ------ To give read permission to current(login) user
chmod u+w fileName (enter) ------ To give write permission to current(login) user
chmod u+x fileName (enter) ------ To give execute permission to current(login) user

chmod g+r fileName (enter) ------ To give read permission to current(login) user's group
chmod g+w fileName (enter) ------ To give write permission to current(login) user's group
chmod g+x fileName (enter) ------ To give execute permission to current(login) user's group

chmod o+r fileName (enter) ------ To give read permission to other/world
chmod o+w fileName (enter) ------ To give write permission to other/world
chmod o+x fileName (enter) ------ To give execute permission to other/world

chmod ug+rw fileName (enter) --- To give read and write permission to current user and group

chmod a+rwx fileName (enter) ---- To give all permissions for all users



24a. chmod ---------- chmod removes permissions from files or directories -------- chmod entity-permissiontype

chmod go-wx fileName (enter) ---------------- remove write execute permissions for the group and for everyone else (excluding you, the user)
chmod a-rwx fileName (enter) ---------------- remove all permissions for you, the group, and the rest of the world

chmod 000 fileName (enter) ------------------ revoke all permissions (---------)
chmod 777 fileName (enter) ------------------ grant all permissions (rwxrwxrwx)
chmod 755 fileName (enter) ------------------ reserve write access for the user, but grant
chmod 664 filename (enter) ------------------
all other permissions (rwxr-xr-x)

7 -------- 4(r) + 2(w) + 1(x) rwx read, write and execute
6 ------- 4(r) + 2(w) rw read and write
5 -------- 4(r) + 1(x) r-x read and execute
4 ------- 4(r) r- read only
3 -------- 2(w) + 1(x) -wx write and execute
2 ------- 2(w) -w write only
1 -------- 1(x) --x execute only
0 -------- 0 --- none

------------------------------------------------------------------

Contact for more information - [email protected]