answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How command remove the directory which must be empty of file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the working of attrib command?

The attrib command is a Recovery Console command used to change the file attributes for a file or directory while in Recovery Console. An attrib command is also available from the Command Prompt. attrib [+r|-r] [+s|-s] [+h|-h] [+c|-c] [filename] +r = This assigns the read-only file attribute to the file or directory. -r = This removes the read-only attribute. +s = This assigns the system file attribute to the file or directory. -s = This removes the system attribute. +h = This assigns the hidden file attribute to the file or directory. -h = This removes the hidden attribute. +c = This assigns the compressed file attribute to the file or directory. -c = This removes the compressed attribute. filename = This is the file or directory that you are wanting to change the attributes of.


In Unix what is the command for Displaying whether a file is a simple file or a directory?

Use the file type test: if [ -d $file ]; then echo $file is a directory elif [ -f $file ]; then echo $file is a file else echo $file is not a directory or a file fi


What is working of Attrib command?

The attrib command is a Recovery Console command used to change the file attributes for a file or directory while in Recovery Console. An attrib command is also available from the Command Prompt. attrib [+r|-r] [+s|-s] [+h|-h] [+c|-c] [filename] +r = This assigns the read-only file attribute to the file or directory. -r = This removes the read-only attribute. +s = This assigns the system file attribute to the file or directory. -s = This removes the system attribute. +h = This assigns the hidden file attribute to the file or directory. -h = This removes the hidden attribute. +c = This assigns the compressed file attribute to the file or directory. -c = This removes the compressed attribute. filename = This is the file or directory that you are wanting to change the attributes of.


What is a file command used to create or start a new file?

The 'touch' command creates a new empty file in Unix.


What is the concept of mounting a file system?

Mounting a file system is what allows one to access the access, read, and modify it. It doesn't matter where the file system is mounted, either (though an empty directory is preferable). The mount command binds the physical device to whichever directory you choose and calls the proper kernel driver to allow actual file operations.


How do you rename a directory in UNIX?

You rename a directory the same way you rename a file. Use the 'mv' command to rename it.


What is the pwd command in Linux?

The pwd command prints the working directory. The working directory is the directory you are "in", where operations on files that don't have an absolute path specified will be performed. For instance, if my working directory is /home/username/stuff, then the command echo "test" > test.txt would place the file test.txt in that directory.


What does DOS mean when it tells you bad command or file name?

The DOS message "bad command or file name" means that the command you entered was not recognized as an internal command or as an external command in the working directory or path.


Where is the DIR command located?

The DIR or directory command is located in the system32 directory of Windows. It is an executable file that gives DOS access to a user.


What is the difference between ls and vdir command in Unix?

ls is the default command that lists the contents of a directory. vdir is a common alias for the command: ls -al That command lists the contents of a directory as well as information about the file such as owner, group, file size, permissions, last modified, etc.


What is the command to rename a given file in UNIX?

mv dir1 new_dir mv file file1 rename / move a file or directory


What command can be used to view a list of directory hierarchies, including the file system type?

The df utility displays a list of the directory hierarchies available on the file system. NFS is the file system type.