Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Is this command serve the purpose of renaming

This is a discussion on Is this command serve the purpose of renaming within the Unix/Linux forums, part of the Operating Systems category; Is it possible to rename files or directories using mv command in Linux. I know that mv command is used for moving files or directories around the file system. But ...

Go Back   Geeks Talk > Operating Systems > Unix/Linux
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-29-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 65
Thanks: 0
Thanked 2 Times in 2 Posts
christia is on a distinguished road
Is this command serve the purpose of renaming

Is it possible to rename files or directories using mv command in Linux. I know that mv command is used for moving files or directories around the file system. But what about renaming. Can we use this command for this purpose
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-09-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
StephenRaj is on a distinguished road
Re: Is this command serve the purpose of renaming

Actually mv command is called as rename command and is used for renaming files or directories.
The general syntax of this command is
#mv geek1 geek2
The above renames file geek1 to geek2.
mv command is used not only to rename files. It is also used to rename directories.
Reply With Quote
Reply

  Geeks Talk > Operating Systems > Unix/Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved