The document contains questions and answers about Linux commands. It asks about finding and copying text matching "enter" from a dictionary file to a new file. It also asks about archiving and compressing the etc directory. The last question asks about creating a shared directory with certain permissions and group ownership for collaboration.
The document contains questions and answers about Linux commands. It asks about finding and copying text matching "enter" from a dictionary file to a new file. It also asks about archiving and compressing the etc directory. The last question asks about creating a shared directory with certain permissions and group ownership for collaboration.
The document contains questions and answers about Linux commands. It asks about finding and copying text matching "enter" from a dictionary file to a new file. It also asks about archiving and compressing the etc directory. The last question asks about creating a shared directory with certain permissions and group ownership for collaboration.
Q.13 Archive and compress for /etc directory under
/var/tmp/archive.tar.bz2 format?
My Answer: sudo tar -czvf /var/tmp/archive.tar.bz2 /etc/
Ideal Answer: grep –i “enter” > /root/strings.txt cat /root/strings.txt Q.09 Directory collaboration Create the directory “solman” with the following characteristics Group ownership of “solam” should go to the manager group. The directory should have full permission for all members of the “manager” group but not to the other users except root. Files created in future under “solam” should get the same group ownership. User Natasha will get “rw” permission on “solam” and user harry should not be able to access the directory. My Answer: sudo tar -czvf /var/tmp/archive.tar.bz2 /etc/ Ideal Answer: grep –i “enter” > /root/strings.txt cat /root/strings.txt