Create the following file structure in midtermuser\'s home directory this/is/a/f
ID: 3577865 • Letter: C
Question
Create the following file structure in midtermuser's home directory this/is/a/file/for/my/midterm Copy the my_midterm file to the path created in step 1, the file is located in/opt Change the owner ship of the file so that it belongs to the user midtermuser and the group midteruser Change the permissions of the my_midterm file to rwx rx rx Create a "." File in the path created in step 1 with the name ".hiden" Users Add the following users: flash, batman, superman Create a user group with the name "dc_comics" Add all the users created on step 1 to the dc_comics user group Back up the home directory of lex_luthor to/opt/backup/badguys/with its contents Remove the user lex_luthor recursivelyExplanation / Answer
1) to create file structure we use 'mkdir -p'.
mkdir -p this/is/a/file/for/my/midterm
2) for copying file from one location to other we use 'cp' command.
cp /opt/my_midterm this/is/a/file/for/my/midterm/
3)
for user: 'chown' command is use to change the ownership of user.
chown midtermuser my_midterm
for group: 'chgrp' command is use to change the ownership of group.
chgrp midteruser my_midterm
4) 'chmod' command is used for changing the read, write and execute permissions.
chmod 755 my_midterm
5) 'touch' command is used to create file.
touch this/is/a/file/for/my/midterm/.hidden
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.