answersLogoWhite

0

The rm command is used to delete a file or directory. Its syntax is

rm file or rm -r directory

Example:

rm myfile

rm -r /home/user/mystuff

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Write a UNIX command to display the current date in the form ddmmyyyy?

UNIX command to display the current datedate +'%d/%m/%Y'Niraj sharma


UNIX may be described as being difficult to use Why?

Traditionally, the UNIX command interface was the only way to communicate within a UNIX system. Today, that is not true, with the graphical interfaces that are available. However, the true power of what you can do within UNIX is still in the command line interface. The command line interface is not very intuitive, and uses commands that are abbreviated to the point of not necessarily being understandable. Also, system administration tasks in Unix have typically been harder to accomplish because of the amount of background knowledge necessary even to do simple things. UNIX was developed early on for programmers by programmers, and little thought was given to the end user; as a result, it had a reputation of being difficult to use until you took the time to understand the (admittedly) arcane command line interface.


How can you stop computer programmes running in the background?

In UNIX: with command kill, in Windows: from Task Manager.


Why is Unix called a command interpreter?

Unix and Unix-like systems would be referred to as command interpreters because of the nature of their interface. These systems are interacted with via a shell (i.e. Bash), which is a 'command-line interface' where the user types in text commands and they are executed by the system. This is in contrast with modern operating systems where the primary method of interaction is via a 'graphical user interface' or GUI, where the system is represented with graphics (like windows, cursors, toolbars etc.). These modern OS's still include command-line interfaces, like Command Prompt in Windows and the Terminal in OSX.


Unix command to count how many users have logged on to the unix system?

The 'uptime' command will tell you exactly how many users are on the system. There are other variations of this, including counting the number of words from the 'users' command, etc., but this is the easiest.

Related Questions

What is the rm -rf command in unix?

Recursively removes all files from the directory and all under it.


In Unix how to remove a directory that is not empty?

The easiest way is to use the 'rm' command recursively. For example, the command: rm -rf /data/test/docs/fall would remove the directory 'fall' from /data/test/docs, even if it isn't empty.


What is the use of execute command in unix?

There is no traditional 'execute' command in Unix.


What command you use to delete a file?

Del is used to delete a file in command prompt.


Brief description of format command in unix?

There is no standard 'format' command in Unix.


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.


What is the unix command to delete a given file?

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.


What command would you use to remove a directory on a UNIX server?

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


Which is the most commonly used command for referencing detailed information about a particular command in UNIX?

In Unix, use the 'man' command.


How do you delete file without moving in to trash in mac systems?

To do it from a command line: Open a Terminal window and use the unix "rm" command. To do it with a GUI: Download and install the muCommander program (very similar to Windows Explorer, but for the Mac).


What is the Unix command to check to see who is logged in?

The "who" command.


What is the command to get the Unix version?

cat /proc/version The above answer will only work on certain systems. For most Unix systems, use the 'uname' command to get the Unix version. AIX uses the oslevel command.