RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

mv

Article Index
1. Name
2. Synopsis
3. Frequently used options
4. Examples

1. Name

mv [man page] - move (rename) files

2. Synopsis

mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...

3. Frequently used options

-f, --force
do not prompt before overwriting
-i, --interactive
prompt before overwrite

4. Examples

Move whole directory:

mv dir2/ dir1/  

mv - Move whole directory
move content of dir2 to dir1:

mv dir2/* dir1/ 

mv - move content of dir2 to dir1
Use -i option if you re not sure that the target directory does not contain same files or directories. If it does mv will override current files by default.:

mv -i file1 dir1/ 

mv - prompt before overwrite
mv command can be also used to rename files and directories:

mv file1 file2 

mv - rename directory or file

Share this linux post:

Submit mv in Delicious Submit mv in Digg Submit mv in FaceBook Submit mv in Google Bookmarks Submit mv in Stumbleupon Submit mv in Technorati Submit mv in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download