Thursday, February 28, 2013

Some Useful commands in Ubuntu

- Deleting a file

$ sudo rm filename

- Deleting a non-empty directory

sudo rm -rf  dirname

- Deleting empty directory

sudo rmdir dirname

- Creating a directory

$ mkdir dirname

- Creating sub-directory

$mkdir -p dirname/subdirname


No comments:

Post a Comment