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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...