Essential Linux Commands for File and System Management
Classified in Technology
Written on in
English with a size of 2.65 KB
More Commands to Query the System
The chmod Command
This command is used to modify file permissions. There are two primary ways of using it:
- Octal (Numeric) Notation:
chmod 777 myfile - Symbolic Notation:
chmod g+x myfile
In the first case, we set permissions using the octal form, while in the second, we use symbolic notation. In the example, we add the execute permission (x) to the group (g) owning the file. We can use + to add or - to remove permissions for different classes:
- u: User (owner)
- g: Group
- o: Others
These are followed by the permission type: r (read), w (write), or x (execute).
The chown Command
This command is used to change the owner of a file and can be used as follows:
chown -R new_owner /path/to/fileThe chgrp Command
The chgrp command changes... Continue reading "Essential Linux Commands for File and System Management" »