Getting Started with Git

4 / 16

GitHub Project - Getting Started with Git - Create a File in Your Repository

Let's create a file in the repository.

INSTRUCTIONS
  • Make sure you are in ~/devops directory

    • Create an empty file called helloworld.py using touch helloworld.py
    • Add line print("Hello World") in helloworld.py and save the file
    • Please use the below command to add a line to the file

      echo 'print("Hello World")' > helloworld.py

    • Verify the file content using cat command

      cat helloworld.py

    • You can use nano or vi editor to edit the file content if you are comfortable with them using commands like nano helloworld.py or vi helloworld.py

See Answer

No hints are availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...