Jump to content

mv command help [solved]


Recommended Posts

I'm practicing using the terminal for basic commands. So far I can make a file (mkdir)

change to another file (cd), display whats in the file (ls), remove files (rm), and remove folders (rmdir)

But for the life of me I can't move a file. Here is what I do with the results. Can someone please correct

my command? I named the file test. Try mv _help got me even more confused

 

[maparus@localhost Desktop]$ su

Password:

[root@localhost Desktop]# mv test/home/maparus/Documents

mv: missing file argument

Try `mv --help' for more information.

[root@localhost Desktop]#

 

Many thanks maparus

Link to comment
Share on other sites

to move a file you need both a source and destination, i.e.:

mv /home/mark/test.txt /home/mark/Various/

will move test.txt from /home/mark to /home/mark/Various

 

whenever you have questions about a command the first step is to man it, i.e.:

man mv

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...