'cp' command in linux

 

  cp - copy files and directories.

  Format: cp [options] source destination

  Eg: cp file1 /data/

  Here it copies the file1 from the present working directory to the directory /data

  Eg2: cp –a /data1 /data2/

  Here it copies the directory data1 into the directory data2 recursively

  • 17 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'mv' command in linux

       mv – renames and move files     Format mv...