This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: with nice if necessary. 7. A proces. 8. Working as root , you are planning to delete some files but want to make sure that the wildcard expression you will use is correct. Suggest two ways you could make sure that you deleted the correct files. a. Give the rm command with the –i flag and confirm each deletion. 16 2 b. Before giving the command, replace rm with echo on the command line. The shell will expand the wildcards and you will be able to see which files will be deleted. c. Redirect the output of ls with the wildcard expression to put the names of the files you want to delete in a file (named, for example, deleteme ). Once you have the correct filenames listed in the file, give the following command: # rm $(cat deleteme) See page 374 for more information on command substitution. 9. Crng backups:...
View Full Document
- #, Filename, Computer file, 10 minutes, 100 percent