Monday, October 8, 2018

How to copy Directories with cp Command in Linux

We can copy directories with the Linux cp command, we need to use -r option. For example, this command copies the directory named xxdir to the /home/xxuser directory:

cp -r xxdir /tmp/xxuser

If you try to copy a directory without using the -r argument we will get xxdir is a directory(not copied) error message as shown in below screenshot.


No comments:

Post a Comment

Query To Fetch AP Invoice Details From SO Number(Doc ID 2949013.1)

SELECT dh.source_order_number       ,df.source_line_number as so_line_number   ,df.fulfill_line_number    ,ddr.doc_user_key as po_number...