Quiz
Exercise 1:
Create a directory named "linux_tutorial"
Create a file & save "f1.txt" inside it with content "hi i'm alive"
Create another directory named subdir
Navigate to subdir
Create and save a file named "f2.txt" inside subdir with content "I'm not a donkey"
hit cd (to come out completely)
Find the file which contains "a donkey" string in entire your machine
Open file "f2.txt", search for speific string or charcter and keep searching for all its occurences
Now, without opening file "f2.txt" replace any existing string with "blah"
Print the line numbers in f1.txt without opening it
Exercise 2:
create directory path like "linux_tutorial/chapter1" in one go
navigate to the chapter1
just create and save 5 files with some name and some contents
sort these files by thier
alphabetic names
size
Tip: Play a little more quizes online: http://lmgtfy.com/?q=linux+basic+quiz
Last updated