cueFlash

Glossary of Linux Skills Exam Commands Practice

Start Studying! Add Cards ↓

What command would be used to create a directory called "statistics" for file sharing between a group called "accounting", a group called "finances", a group called "management", and a group called "topmgmt&qu
mkdir statistics
chgrp statistics topmgmt -(FINISH LATER!)
Create a directory for sharing files between "girls" and "boys" - Make it so that neither group can delete each other's files.
-(FINISH LATER!)
Add a printer called lpr42. Give full access to lpr42 to groups "mgmt" and "accounting". Give restricted access to the group called "sales".
-(FINISH LATER!)
Create hard disk quotas for the following groups:
"mgmt" - 20 MB
"accounting" - 10 MB
"finances" - 15 MB
-(FINISH LATER!)
Create hard disk quotas for the following users:
"JKnight" - 20 MB
"PIrving" - 10 MB
"SRand" - 15 MB
-(FINISH LATER!)
Create a hard disk quota of 20 MB for each user "JKnight", "PIrving", and "SRand" - all of whom belong to the group "mgmt".
-(FINISH LATER!)
Create a directory called "sunbeams" - Set ownership and permissions on this directory so that "rainbows" can read and write files in this directory, "tulips" can do anything within the directory, "marigolds" can o
-(FINISH LATER!)
Create the users "flowergirl" with the user ID of 615, "flowerchilde" with the home directory of /home/flowercity, "hippyfreak" with the user ID of 617, and "tinytim" with the group membership of "freaks"
useradd -u 615 flowergirl
useradd -d /home/flowercity flowerchilde
useradd -u 617 hippyfreak
useradd -g freaks tinytim
Create the user groups of "snow", "sunshine", "stormy" and "drizzle"
groupadd snow
groupadd sunshine
groupadd stormy
groupadd drizzle
Create the user groups of "snow" with the group ID of 462, "sunshine" with the group ID of 463, "stormy" with the group ID of 464 and "drizzle" with the group ID of 465
groupadd -g 462 snow
groupadd -g 463 sunshine
groupadd -g 464 stormy
groupadd -g 465 drizzle
View the list of groups that you are a member of.
groups
View the group IDs for the groups you are a member of.
id
Add the user MaryJ to the group "gardeners".
usermod -G gardeners MaryJ
Assign the user ID 692 from JohnM to the new user SallyR.
useradd -u 692 SallyR
Change the ownership of all the files in the directory "peachsales" from MaryB to SallyR
chown -R SallyR peachsales

Add Cards

You must Login or Register to add cards