Week 01 - Exercises¶
# Create a new directory called "week-01" and navigate into it
mkdir week-01
cd week-01
# Create a new file called "exercise.txt" and add some text to it
echo "This is my first exercise file." > exercise.txt
# Display the contents of "exercise.txt"
cat exercise.txt
# Create a new file called "notes.md" and add some markdown content to it
echo "# Week 01 Notes" > notes.md
echo "These are my notes for week 01." >> notes.md
# Display the contents of "notes.md"
cat notes.md
# Create a new directory called "subdir" and navigate into it
mkdir subdir
cd subdir
# Create a new file called "subfile.txt" and add some text to it
echo "This is a file inside the subdirectory." > subfile.txt
# Display the contents of "subfile.txt"
cat subfile.txt
# Navigate back to the "week-01" directory
cd ..
# List all files and directories in "week-01"
ls -l
The /etc, tricky file name and find exercises moved to Week 02 - Exercises.