Thursday, September 20, 2018

LINUX COMMAND

Linux Command

How to give permissions in Linux-


In Linux, When we create any file or directory .A user who creates directory has owner permission and can give permissions to user group and others(all). Permissions are applied to UGO ( user, group and Others)
.There are three permissions - Read , Write and Execute-

Which user has Read,Write and Execute can do all changes which is similar to full control of windows.

chmod command is used to give permissions-




Octal numbers are used to assign permissions-

0 - no permission ( Deny )
1- Execute
2- Write
3- Write+Execute
4- Read
5-Read+Execute
6- Read+ Write
7- Read+ Write+ Execute

You can write chmod command for full control like this.

#chmod 777 yash

where -first 7 is for user , second 7 is for Group and Third 7 is for Others.
             7 represents full control ( read+write+execute)



You can remove permissions-

#chmod 000 yash

where 0 is for no permission

No comments:

Post a Comment

HOW PREPARE YOURSELF BEFORE AN INTERVIEW?

Research about the organization. Search background information, get the perspective, develop a question list. Compare your skills an...