find -size 0
Assuming the directory is in your Home directory use: rmdir directory-name This will fail if there are files within the directory. In this case, use rm -r directory-name.
If you are just removing the directory, use the command: rmdir dir-name The dir-name directory has to be empty for this to work. If there are files or other subdirectories then use the command: rm -rf dir-name
The easiest way is to use the 'cp' command. Put the name of all the files in the 'cp' command line and use another directory as the target; all the files will be copied to the new directory. Note: you may need to use the -r (recursive) copy option if you have subdirectories in the source directory.
The command in a terminal is: ls (short for List). This will list the files in the current directory. Whilst in the Home directory, to list the files in a different directory, for instance Videos, use: ls Videos.
In DOS, you can delete files only by delete command. Use delete command as follows:C:\> delete For example: delete rajesh and then press enter..To remove a directory (Folder) use following command:C:\> RD For example: rd documents and then press enter..Note: Please make sure that directory is empty. You can only delete empty directory with rd command..
This could mean that the directory named bar has hidden contents. Use ls -a bar to show all contents of bar.
DIR
ls
Use the command: ls z* for those files in your current working directory.
DIR
rm -rv /path/to/directory
To remove a directory that is full with other files or directories, use the below command. rm -rf directory