An access control list (ACL) is a list of permissions attached to an object. ACLs can be used for situations where the traditional file permission concept does not suffice. ACLs enable you to assign permissions to individual users or groups even if these do not correspond to the object’s owner or group. For example, members […]
chattr: command not found
The chattr command is used to change the attributes of a file or directory. The following table describes some of the options of the chattr command. Option Description -R Recursively change the attributes of directories and their contents. -v {version} Set the version number of a file. +i Mark the file as read-only, or immutable. […]
lsattr: command not found
The lsattr command is used to list the attributes of a file or directory. The below table describes some of the options of the lsattr command. Option Used To -R Recursively list attributes of directories and their contents -a List all files in a directory -d List directories like files, instead of their contents -v […]
chgrp: command not found
chgrp: command not found The chgrp command is used to change the group ownership of a file or directory. Changing the group ownership of an object ensures that the group permissions are applied to the specific group. Syntax The syntax of the chgrp command is: # chgrp {group name} {file/ directory name} If you encounter […]
chown: command not found
The chown command is used to change the owner, the group, or both for a file or directory. At times, you may wish for someone else to manage an object’s permissions other than the user who created that object. The following example describes how to use this command. 1. Change the owner but not the […]
umask: command not found
The umask command alters the default permissions on newly created files and directories. Changing default permissions can be useful if you’d like to automatically control how new objects can be used, rather than changing these permissions manually on every new object. With umask, you set default permissions using octal numeric format. However, instead of specifying […]
chmod: command not found
The chmod command enables you to modify the permissions of a file or directory. Only the owner of the file or directory or the system administrator can change the permissions of the object. Syntax The syntax of the chmod command is: # chmod [options] {mode} {file/ directory name} chmod Command Options The chmod command supports […]
Understanding /etc/profile Configuration File in Linux
The /etc/profile file provides system-wide environment variables. This may be more effective for administrators to configure if there are settings that apply to all users. During the initial login process for a user, the system reads the /etc/profile file first for Bash shell configurations, and then any user-specific Bash customizations are pulled from the .profile […]
What is the purpose of .bashrc file in Linux
The .bashrc file enables customization of the user’s own environment. The file is stored in a user’s home directory. Because the .bashrc file is unique to each user, it can be configured to a user’s own specific needs or preferences. A good example of the use of the .bashrc file is the use of aliases. […]
id: command not found
The id command is used to display user ID (UID) and group ID (GID) information. Entering the command with no options displays information about the user who is currently logged in. You can also specify a user name as an option to display ID information about a specific user. Syntax The syntax of the id […]