Command Line Interface - Notes (1)
Command Line Interface - Notes (1)
EVENT -1
COMMAND LINE INTERFACE
Hey everyone, here are the basic notes that are prepared by The Learning
Olympics team.
These notes will give you insight on the commands you need to learn that
will help you accomplish the event’s task and quiz.
Sample questions:
1. Create five directories such that dir1/dir2/dir3/dir4/dir5/. Note that
the dir5 is present within dir4 which in turn present in dir3 and so on
till dir1. Create three files (name.txt, email.txt, role.txt) outside of
dir1 and copy each of these files into all the directories. (dir1 will
contain name.txt, email.txt, role.txt and dir2 will contain name.txt,
email.txt, role.txt and dir3 will contain name.txt, email.txt, role.txt
and so on). Fill in the content for name.txt, email.txt, role.txt of you
choice.
*Try to keep things simple and try to reduce the number of steps.
Instead of copying one file at a time to one directory. Try to find an
easier way out.
3. Copy all the content of and place them into one pdf file named as
‘final.pdf’
The result should look like this:
CAUTION!
The commands listed here are powerful tools that can alter or delete
files, directories, and configurations on your system. Practice these
commands solely on a safe online terminal or a designated test
environment (Docker Play).