Creare e rimuovere directory


Creare e rimuovere directory
Tramite i comandi mkdir e rmdir si possono creare e cancellare directory.
mkdir <dir1> [<dir2> … <dirn>]
rmdir <dir1> [<dir2> … <dirn>]
Ognuno degli argomenti è considerato una directory da creare/cancellare.
/home/rossi$ mkdir report-2000 report-2001
/home/rossi$ ls -F
report-2000/ report-2001/
/home/rossi$ rmdir report-2000 report-2002
rmdir: report-2002: No such file or directory
/home/rossi/$ ls -F
Una directory può essere rimossa solo se è vuota:
/home/rossi$ rmdir ..
rmdir: ‘..’: Directory not-empty

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?