This question already has an answer here:
I am new to Ubuntu. I want to create a new dir in
/home, lets call it
myDir, and then I want to create a
.txt file that outputs the current date. All these through terminal comands. So, to be more specific... I am in
/home and I type
sudo -l #So I can type comands as superuser, I think. sudo -mkdir myDir #That works fine, the new directory is created, but
sudo date > myDir/output.txt
It still does not give me any permission.
Someone might wonder, "You really have to create a new dir in /home?", well to tell you the truth, yes I do! Its a step from a school exercise and I am also really curious. I'am telling you so far I love ubuntu (installed 3 days ago) and if I can manage to fix a problem with my internet connection (one issue at a time) I am so gonna delete windows from my laptop!
Thank you in advance!