#Command 1 ################################################################## #3c. #Creating a file named /root/tyrion.creds #Create file and add credentials sudo cat /root/tyrion.creds username=tyrion password=slapjoffreyslap ################################################################## #Command 2 ################################################################## #Change the mode of the file sudo chmod 0600 /root/tyrion.creds ################################################################## #Command 3 ################################################################## #3d. #Open the ../fstab file sudo cat /etc/fstab #Input the line reqquired to be added in the file and save the contents. ################################################################## #Command 4 ################################################################## #4c. #Open ../fstab with sudo cat etc/fstab #Add the required lines and save the contents ################################################################## #Command 4 ################################################################## #5g. #Repeat the same procedure in 3d and 4c to open ../fstab #Add the requires lines into the file and save ################################################################## #Command 5 ################################################################## #6d. #Retrieve UUID for the swap partition from ../vdb2 sudo blkid /de/vdb2 ################################################################## #Command 6 ################################################################## #Open ../fstab using the command used in 3d, 4c, and 5g #Add the UUID obtained from the previous command #Input in form of; UUID="XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXX" swap swap defaults 0 0 ##################################################################