Create n Remove Directory n File

Create n Remove Directory and File

  1. mkdir: The mkdir command will allow you to create directories. Example: “mkdir rghimire” will create a directory called “rghimire”.

2. rmdir: The rmdir command will delete an empty directory.

3.touch: The touch command is used to create a file. It can be anything, from an empty txt file to an empty zip file. For example, “touch new.txt”.

4.rm: Use the rm command to delete files and directories.  Use “rm -r” to delete just the directory. It deletes both the folder and the files it contains when using only the rm.

Leave Comment

Your email address will not be published.