< Previous Challenge - Home - Next Challenge >
In this challenge let's learn about file content manipulation and discover how to count file lines, display specific lines from a file, and more.
-
Display the first 10 lines of
/etc/resolv.conf
-
Display the last 5 lines of
/etc/crontab
-
Create a file named
count.log
with this content:One
Two
Three
Four
Five -
Use
cp
to make a backup of this file tocount.bkp
-
Use
cat
to make a backup of this file, saving ascat-count.log
-
Display the content of
cat-count.log
, with all lines in reverse order -
Use
more
to display/etc/selinux/semanage.conf
-
Use
ls
to find the biggest file in/var/log
- Show the content of the first 10 lines of
/etc/resolv.conf
- Show the last 5 lines of
/etc/crontab
- Validate if the content of the file
count.log
was created as expected - Check if the file
count.bkp
was created - Check if the file
cat-count.log
was created - Confirm if you can see the content of the file
cat-count.log
in reverse order - Validate if you was able to see the content of the file
/etc/selinux/semanage.conf
paged - Check if you can see the biggest file in
/var/log
at the top of the list