Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

It's surely easy to do while using a graphical environment, but when I'm using the shell I have no idea on how to do that, I already tried to use copy, move, delete, and I discovered that these word are not existent commands on the shell.

share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

These are:

  • Copy: cp file_name <directory|file_name>
  • Move: mv file_name <directory|file_name>
  • Delete: rm file_name

Visit their man pages for more information.

share|improve this answer
1  
Note that the command descriptions are incomplete/incorrect. For cp and mv the 2nd parameter can be, and quite frequently is, a file name, it doesn't have to be a directory. –  Levon Jul 15 '12 at 21:04
    
@Levon: Thank you. Added the other possibility. Keeping it simple. –  Birei Jul 15 '12 at 21:10
add comment

The commands you are looking for are: cp, mv and rm - but that won't help you past those specific tasks.

You'd really benefit from reading basic tutorials (see links below) on using a Linux/Unix system from the command line, or picking up an intro text from your local library. If you are somewhat familiar with the Windows command shell, then you will find some basic similarities (of course the commands are still different).

In the meantime, check out the manual (a.k.a. man) pages. To find out more about them you can type

man man 

at the command prompt.

Another very useful command line switch to use with man is -k, it will list commands related to the search term you list. For instance

man -k delete

will list all the commands that have to do with "delete". Of course you have to be somewhat selective in what you search on. A man -k file will get you tons of commands since most commands do something with files :)

I just did this google search: "how to use the unix command line" and found a bunch of pages. Here are 3 that might be helpful:

and I bet there are some intro videos on youTube (<- check this link :) too.

share|improve this answer
1  
TLDP has always been a great source for initial learning: tldp.org/LDP/intro-linux/html/intro-linux.html –  Bananguin Jul 17 '12 at 7:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.