whats the command to change or rename files in linux shell commands
RegisterLogin
whats the command to change or rename files in linux shell commands
Post Description: whats the command to change or rename files in linux shell commands
Tags: whats, the, command, to, change, or, rename, files, in, linux, shell, commands
This Post Was Posted On Feb 29, 2008 By apck #2134
Post Description: whats the command to change or rename files in linux shell commands
Tags: whats, the, command, to, change, or, rename, files, in, linux, shell, commands
This Post Was Posted On Feb 29, 2008 By apck #2134
whats the command to change or rename files in linux shell commands by apck
i have a file called myusers.php and i want to change it to mynewusers.php
thnkas
Leave Your Comments
hostman
#2210 1
yup,
its easy to do to rename the file you are talking about here, this is the commmand:
mv myusers.php mynewusers.php
here are more instructions:
NAME
mv - move (rename) files
SYNOPSIS
mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...
DESCRIPTION
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
Mandatory arguments to long options are mandatory for short options
too.
--backup[=CONTROL]
make a backup of each existing destination file
-b like --backup but does not accept an argument
-f, --force
do not prompt before overwriting
-i, --interactive
prompt before overwrite
--strip-trailing-slashes remove any trailing slashes from each SOURCE
argument
-S, --suffix=SUFFIX
override the usual backup suffix
-t, --target-directory=DIRECTORY
move all SOURCE arguments into DIRECTORY
-T, --no-target-directory
treat DEST as a normal file
-u, --update
move only when the SOURCE file is newer than the destination
file or when the destination file is missing
-v, --verbose
explain what is being done
--help display this help and exit
--version
its easy to do to rename the file you are talking about here, this is the commmand:
mv myusers.php mynewusers.php
here are more instructions:
NAME
mv - move (rename) files
SYNOPSIS
mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...
DESCRIPTION
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
Mandatory arguments to long options are mandatory for short options
too.
--backup[=CONTROL]
make a backup of each existing destination file
-b like --backup but does not accept an argument
-f, --force
do not prompt before overwriting
-i, --interactive
prompt before overwrite
--strip-trailing-slashes remove any trailing slashes from each SOURCE
argument
-S, --suffix=SUFFIX
override the usual backup suffix
-t, --target-directory=DIRECTORY
move all SOURCE arguments into DIRECTORY
-T, --no-target-directory
treat DEST as a normal file
-u, --update
move only when the SOURCE file is newer than the destination
file or when the destination file is missing
-v, --verbose
explain what is being done
--help display this help and exit
--version
Jun 21, 2007 Reply Report abuse
©2012 Webune Forums - Thu Dec 13, 2012 3:23 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3