1

I tried to run

% mvdir 

earlier and it said command not found. I then ran a search for it and still not found. Is there a place I can download the script for the command, and is there any information I should know post-download to get it to work?

4 Answers 4

16

Linux does not need mvdir. GNU mv operates on both files and directories.

1

If you are accustomed to using 'mvdir' to move folders just assign an alias to it.

alias mvdir='mv'

Now, 'mvdir' acts the same as typing 'mv'

2
  • This is more of a 'if you're already used to one way, why learn another' type answer. Jun 18, 2010 at 5:45
  • Yes... and if you accidentally move a file instead, you'd expect a command like "mvdir" to error out instead.
    – Jarvin
    Jun 18, 2010 at 5:50
1

You probably want to use the mv command for Linux/Ubuntu, assuming you are trying to move a file/directory. mvdir is obsolete.

2
  • what does "mv is obsolete" mean? Jun 18, 2010 at 2:03
  • 1
    I'd assume that it's a typo, and that he meant 'mvdir is obsolete'
    – Babu
    Jun 18, 2010 at 2:14
0

Here are a couple reference pages of Linux commands:

http://ss64.com/bash/

or

http://www.oreillynet.com/linux/cmd/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .