Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

copy file in linux command

#For Example: cp filename DestinationPath#  with new name
cp file_name /home/ubuntu/Desktop/file_name2

#For Example: cp filename DestinationPath#  with Same Name
cp file_name /home/ubuntu/Desktop/

#For Example: cp filename in same directory
cp file_name new_file_name

#For Exmaple : cp for Full Directory include files
cp -r dir_name new_dir_name
 
PREVIOUS NEXT
Tagged: #copy #file #linux #command
ADD COMMENT
Topic
Name
7+6 =