Essay about Cs 315 Lab2
A. Try to find the proper Linux commands that will answer the following questions. Hint: You can either find the answer from the textbook or from the Internet.
*You need to write the procedure that is necessary to accomplish the tasks listed below. Test to see if your answers are correct and type your correct answer under each question. Upload your finished lab document to the dropbox.
1. Use the ls command to list the contents of the root file system directory (/) on your system. ls /
2. Use the ls -l command to view the contents of the root file system directory (/). ls –l /
3. Determine the inode value for the /etc directory.
ls –i /
4. Make /etc your current working directory and then …show more content…
16. Make certain you are in your home directory. Change your command prompt so that it shows your current working directory with an exclamation point, such as mydirectory! Change to the spreadsheets and then to the documents directory and notice how the prompt changes cd PS1="\w"!
17. Change to your home directory. Use the rmdir command to delete the spreadsheets directory. What happens? cd rmdir documents/spreadsheets it shows: rmdir: failed to remove `documents/spreadsheets': Directory not empty
18. Delete the datainfo files in both your home directory and in the spreadsheets directory. Also, delete the myinfo and datadata files in the spreadsheets directory. cd rm datainfo rm documents/spreadsheets/datainfo rm documents/spreadsheets/myinfo rm documents/spreadsheets/datadata
19. Change to your home directory. Delete the spreadsheets directory and then delete the documents directory. cd rmdir documents/spreadsheets mdir documents
20. Create a directory called secure under your home directory. Next, using the octal permission