Commands of Rhel
Commands of Rhel
ls Lists all fi ls
les and directories in the current
directory.
chmod a=r Sets read permission for all chmod a=r test.txt
<filename> users.
chmod a+rw Adds read and write permission chmod a+rw test.txt
<filename> for all users.
chmod Modifies specific permissions chmod u+rx,g+x,o-r
u+rx,g+x,o-r for owner, group, and others. test.txt
<filename>
sudo chown Changes the owner and group sudo chown user2:admin
<newowner>:<new of a file. file.txt
group>
filename.txt
Option Function
:wq+ENTER Saves all changes and quit
i Inserts text