Developer(s) | Various open-source and commercial developers |
---|---|
Operating system | OpenVOS, RT-11, OS/8, RSX-11, ISIS-II, iRMX 86, TOPS-20, Z80-RIO, FLEX, CDOS, OS-9, FlexOS, PC-MOS, 4690 OS, MPE/iX, THEOS/OASIS, OpenVMS, CP/M, MP/M, TRIPOS, AmigaDOS, DOS, MSX-DOS, SISNE plus, OS/2, Windows, ReactOS, SymbOS, DexOS |
Platform | Cross-platform |
Type | Command |
In computing, ren
(or rename
) is a command in various command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS, 4NT and Windows PowerShell. It is used to rename computer files and in some implementations (such as AmigaDOS [1] ) also directories. It is analogous to the Unix mv
command. However, unlike mv
, ren
cannot be used to move files, as a new directory for the destination file may not be used. Alternatively, move
may be used if available. On versions of MS-DOS that do not support the move
command (older than 6.00), the user would simply copy the file to a new destination, and then delete the original file. A notable exception to this rule is DOSBox, in which ren
may be used to move a file, since move
is not supported.
The command is available in the operating systems Digital Research CP/M, [2] MP/M, [3] [4] Cromemco CDOS, [5] MetaComCo TRIPOS, [6] DOS, IBM OS/2, [7] Microsoft Windows, [8] ReactOS, [9] SymbOS, and DexOS.
Multics includes a rename
command to rename a directory entry. It can be contracted to rn
. [10]
Stratus OpenVOS, [11] DEC RT-11, [12] OS/8, [13] RSX-11, [14] Intel ISIS-II, [15] iRMX 86, [16] TOPS-20, [17] Zilog Z80-RIO, [18] TSC FLEX, [19] Microware OS-9, [20] DR FlexOS, [21] IBM/Toshiba 4690 OS, [22] HP MPE/iX, [23] THEOS/OASIS, [24] and OpenVMS [25] also provide the rename
command which in some cases can be contracted to ren
.
The rename
command is supported by Tim Paterson's SCP 86-DOS. [26] On MS-DOS, the command is available in versions 1 and later. [27] DR DOS 6.0 also includes an implementation of the ren
and rename
commands. [28]
In Windows PowerShell, ren
is a predefined command alias for the Rename-Item
Cmdlet which basically serves the same purpose. [29]
TSL PC-MOS includes an implementation of rename
. [30] Like the rest of the operating system, it is licensed under the GPL v3. [31]
It is also available in the open source MS-DOS emulator DOSBox.
>ren filename newname >ren *.htm *.html
Another example. This will rename a default video found in Windows 7 with a new name:
>rename"C:\Users\Public\Videos\Sample Videos\Wildlife.wmv""Wildlife2.wmv"
The first parameter may contain a drive and a path, but the second parameter must contain only the new filename.
To remove certain characters of a file name in Microsoft Windows command prompt (XP & Higher) :
>rename"abcd*.txt""////*.txt"
This will remove abcd from the file name.
Notes:
/
as the number of initial characters to remove..
from file nameIn computing, dir
(directory) is a command in various computer operating systems used for computer file and directory listing. It is one of the basic commands to help navigate the file system. The command is usually implemented as an internal command in the command-line interpreter (shell). On some systems, a more graphical representation of the directory structure can be displayed using the tree
command.
The mkdir
command in the Unix, DOS, DR FlexOS, IBM OS/2, Microsoft Windows, and ReactOS operating systems is used to make a new directory. It is also available in the EFI shell and in the PHP scripting language. In DOS, OS/2, Windows and ReactOS, the command is often abbreviated to md
.
In computing, rmdir
is a command which will remove an empty directory on various operating systems.
In computing, CLS
is a command used by the command-line interpreters COMMAND.COM
and cmd.exe
on DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows and ReactOS operating systems to clear the screen or console window of commands and any output generated by them. It does not clear the user's history of commands, however. The command is also available in the DEC RT-11 operating system, in the open-source MS-DOS emulator DOSBox and in the EFI shell. In other environments, such as Linux and Unix, the same functionality is provided by the clear
command.
In computing, echo
is a command that outputs the strings that are passed to it as arguments. It is a command available in various operating system shells and typically used in shell scripts and batch files to output status text to the screen or a computer file, or as a source part of a pipeline.
In computing, CHKDSK
is a system tool and command in DOS, Digital Research FlexOS, IBM/Toshiba 4690 OS, IBM OS/2, Microsoft Windows and related operating systems. It verifies the file system integrity of a volume and attempts to fix logical file system errors. It is similar to the fsck
command in Unix and similar to Microsoft ScanDisk, which co-existed with CHKDSK
in Windows 9x and MS-DOS 6.x.
In computing, more
is a command to view the contents of a text file one screen at a time. It is available on Unix and Unix-like systems, DOS, Digital Research FlexOS, IBM/Toshiba 4690 OS, IBM OS/2, Microsoft Windows and ReactOS. Programs of this sort are called pagers. more
is a very basic pager, originally allowing only forward navigation through a file, though newer implementations do allow for limited backward movement.
The line-oriented debugger DEBUG.EXE
is an external command in operating systems such as DOS, OS/2 and Windows.
In computing, move
is a command in various command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS/4NT, and PowerShell. It is used to move one or more files or directories from one place to another. The original file is deleted, and the new file may have the same or a different name. The command is analogous to the Unix mv
command and to the OpenVOS move_file
and move_dir
commands.
In computing, type is a command in various command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS/4NT and Windows PowerShell used to display the contents of specified files on the computer terminal. The analogous Unix command is cat.
In computing, del
is a command in command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS, NDOS, 4OS2, 4NT and Windows PowerShell. It is used to delete one or more files or directories from a file system.
In computing, ver
is a command in various command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
and 4DOS/4NT. It prints the name and version of the operating system, the command shell, or in some implementations the version of other commands. It is roughly equivalent to the Unix command uname
.
In computing, the print
command provides single-user print spooling capability in a number of operating systems. It is roughly similar to that provided by the UNIX System V lp and BSD lpr print spooler systems.
In computing, find
is a command in the command-line interpreters (shells) of a number of operating systems. It is used to search for a specific text string in a file or files. The command sends the specified lines to the standard output device.
In some operating systems, vol
is a command within the command-line interpreters (shells) such as COMMAND.COM
and cmd.exe
. It is used to display the volume label and volume serial number of a logical drive, such as a hard disk partition or a floppy disk, if they exist.
In computing, help
is a command in various command line shells such as COMMAND.COM
, cmd.exe
, Bash, qshell, 4DOS/4NT, Windows PowerShell, Singularity shell, Python, MATLAB and GNU Octave. It provides online information about available commands and the shell environment.
In computing, copy
is a command in various operating systems. The command copies computer files from one directory to another.
In computing, TIME is a command in DEC RT-11, DOS, IBM OS/2, Microsoft Windows and a number of other operating systems that is used to display and set the current system time. It is included in command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS, 4OS2 and 4NT.
In computing, format
is a command-line utility that carries out disk formatting. It is a component of various operating systems, including 86-DOS, MS-DOS, IBM PC DOS and OS/2, Microsoft Windows and ReactOS.
In computing, comp
is a command used on DEC OS/8, DOS, DR FlexOS, IBM OS/2, Microsoft Windows and related computer operating systems such as ReactOS. It is used to perform comparisons of multiple computer files to show the differences between them.