FDM Unix Exam Questions With Correct Answers.
FDM Unix Exam Questions With Correct Answers. What is find? - answerFinds files/directories in a specified location What is the general find syntax? - answerfind [location] [option] [action] How do you find a file by name and display it? - answerfind /location -name "fileName" - print How do you find files over 1 kb and display the results? - answerfind /location -size +1k - print how do you find files that have been accessed in the past 48 hours and display them? - answerfind /locaiton -atime 2 -print How do you find all files that are empty in a location and interactively delete them (not remove them with separate commands)? - answerfind /location -empty -ok rm {} /; how do you find a file by name while ignoring case and display the results? - answerfind /location -iname "**file**" -print how do you find and combine another action? Ex. find files with "the" in the name and remove their read permissions. - answeruse the -exec [command] {} /; at the end of the find statement. Ex.) find /location -iname "*the*" -exec chmod u-r {} /; How do you represent represent repeating characters with egrep such as finding 11 digit phone numbers that begin with "07"? - answeruse the {n} method. Ex.) egrep '07[0-9]{9}' /location How do do case insensitive grep?
École, étude et sujet
- Établissement
- FDM
- Cours
- FDM
Infos sur le Document
- Publié le
- 31 juillet 2024
- Nombre de pages
- 4
- Écrit en
- 2023/2024
- Type
- Examen
- Contient
- Questions et réponses
Sujets
-
fdm unix exam questions with correct answers
Document également disponible en groupe