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!
/home
. – muru Nov 26 '15 at 12:33/home/skemelio
, or~
, or$HOME
. The terminal opens to your home directory by default. Nosudo
required. – muru Nov 26 '15 at 12:35/home
with a/
at the beginning, you are misunderstanding him. – muru Nov 26 '15 at 12:43