1

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 

then.

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!

muru
  • 207,228
Mr T
  • 333

1 Answers1

2

Your home directory means $HOME which is actually /home/username . You cannot write to /home because it is a system folder which you do not have the rights to modify .

adeen-s
  • 462