answersLogoWhite

0

What is the unix command to delete a given file?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

To delete a file, type: rm filename To delete a file, but prompt for confirmation first use: rm -i filename In both cases, replace filename with the name of the file you're wanting to remove.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the unix command to delete a given file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the rm command in Unix?

The rm command is used to delete a file or directory. Its syntax isrm file or rm -r directoryExample:rm myfilerm -r /home/user/mystuff


How do you clear a Unix memory dump?

A Unix memory dump is usually placed in a file called 'core'. You merely delete the file with the 'rm' command, as you would any other file on the system. For Linux/Unix on the mainframe, the file is called CEEDUMP (if the C plus plus runtime LE library is being used), and you delete it the same way.


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 you use to delete a file?

Del is used to delete a file in command prompt.


What do CD command do in unix?

The 'CD' command is not standard for Unix. The 'cd' command, however, will change directories (folders). It is a means of navigating the Unix file system.


Why file command is used in unix?

The 'file' command in Unix attempts to guess what type of file you are looking at by reading the first several sections of the file and comparing it to a list of known contents for files. It is a useful command if you just want to know what type of file something is without having to examine it yourself. The command is not perfect because it does not detect all types of files but it does a reasonable job of guessing. It is used because in Unix there are no file extension types to tell us what kind of file a given file might be; you have to look inside the file to tell how it might be used.


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

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


How do you create dummy file in unix?

using touch command of UNIX. syntax touch <filename> will create dummy regular file.


How do you check a file for spelling errors in unix?

Depending on the Unix vendor, there is usually a 'spell' or 'ispell' command available to spell check words in a file.


What is the command echo in unix mean?

it is a command in unix and unix like operating systems that places a string on the computer terminal.It is typically used in shell scripts and bath files screen or a file.


In unix how will you find extension of file using commands?

Unix files do not rely on extensions, therefore there is no command to find them.


How do you make a new command in Unix?

first, make a file. in the file you type in the command's name. an example would be the command date. name the file what you want to call that command. when you use the command, type in cat filename and the computer will do the command.