Linux_Commands_Explanation
Linux_Commands_Explanation
ls
Lists all files and directories in the current directory.
Example: ls -l (lists all contents in long format including permissions, size, and modification
date)
rmdir
Removes an empty directory.
cat
Concatenates and displays the content of files.
mkdir
Creates a new directory.
pwd
Prints the current working directory.
cd
Changes the directory.
chgrp
Changes the group ownership of a file or directory.
Example: chgrp group_name file.txt (changes the group ownership of file.txt to group_name)
chmod
Changes the permissions of a file or directory.
Example: chmod 755 file.txt (sets the permissions of file.txt to read, write, and execute for
the owner, and read and execute for group and others)