Assignment 1

Organising and Managing Files using Ubuntu Terminal

Helper Video for the First Assignment:

Video: Helper video for the first assignment. There will not be a helper video for the other assignments

Objective:

You will create a structured project folder, organize files, manipulate content, and ensure correct file management practices using terminal commands.

Instructions:

Open your terminal and navigate to your home directory (cd ~). Create a new directory named Assignment1:

mkdir Assignment1 

Inside Assignment1, create three subdirectories: src, docs, and data:

mkdir src docs data

In the src directory, create a file named main.py using the touch command:

cd src/
touch main.py

Use gedit to open main.py and write a basic Python script that prints "Hello, World!":

print("Hello, World!")

Go to the docs directory. In docs directory, create (touch) a Markdown file named README.md.

touch README.md

Add the following content (gedit):

# Assignment 1
This project contains Python code and related data files. You can print `Hello, World!` by running the `main.py` in the `src` directory.

Go to the data directory. In data directory, create two text files named input.txt and output.txt:

touch input.txt output.txt

In input.txt, write three lines of data using the echo command:

echo "First line of data" >> data/input.txt
echo "Second line of data" >> data/input.txt
echo "Third line of data" >> data/input.txt

Use the cat command to display the content of input.txt and redirect it to output.txt:

cat input.txt >> output.txt

Create a README.md file in the Assignment1/ directory and write details of your assignment in it in Markdown language.

# Assignment 1: Organising and Managing Files using Ubuntu Terminal

## Objective

This assignment is to create a structured project folder, organize files, manipulate content, and ensure correct file management practices using terminal commands.

There are three folders here:

1. `src`

This folder contains a Python code printing "Hello, World!".

2. `docs`

THis folder contains documentation of this repository.

3. `data`

This folder contains data files.

Submit your Assignment 1:

Submit your assignment carefully following How to Submit Assignments? documentation.

Then you are ready to submit your assignment. On the directory you prepared your assignment, run the following. Later, follow the explanations of the script on the terminal.

submitAssignment.sh