Results 1 to 2 of 2

Thread: Is this command serve the purpose of renaming

  1. #1
    Contributing Member
    Join Date
    Jul 2006
    Answers
    63

    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


  2. #2
    Contributing Member
    Join Date
    Jul 2006
    Answers
    57

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact