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?
Written for
- Institution
- FDM
- Course
- FDM
Document information
- Uploaded on
- July 31, 2024
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
fdm unix exam questions with correct answers
Also available in package deal