How to copy and move files on linux(Linux terminal එක use කරල file copy කරමු)

හරි මම අද ඔයලට කියල දෙන්නෙ කොහොම්ද Linux වලදි File එක​ක් copy කරගන්නෙ Move කරගන්නෙ කියල 

0_1569455450299_Screen Shot 2019-09-26 at 5.20.41 AM.png

හරි ඔයාලට පේනව මගෙ මේ ෆොල්ඩර් එක ඇතුලෙ sample.txt කියල file ekak තියෙනව මම දැන් කියල දෙන්නම් කොහොමද එකේ copy ගන්නෙ කියල වෙනත් නමකින්

cp sample.txt new.txt #මේ කියන්නේ sample.txt කියන file එකේ copy එකක් new.txt කියල ගන්න කියලා.

0_1569455747004_Screen Shot 2019-09-26 at 5.25.39 AM.png

හරි දැන් බලමු කොහොමද හදපු file එක කොහොමද වෙන තැනකට move කාරග්න්නෙ කිය​ලා

mv new.txt /Users/yeshan/Desktop/new.txt # මුලින්ම මම file එකේ නම දෙනවා ඊට පස්සෙ move කරන්න ඕන directory එකේ නම දෙනවා ඊට පස්සෙ ඔයාට කැමති නමක් දෙන්න පුලුවන් එත්කොට ඒ නමින් තමයි file එක move වෙන්නෙ.

0_1569457230372_Screen Shot 2019-09-26 at 5.36.18 AM.png

Comments

Popular posts from this blog

Lets talk about bash script

Logical Operators in bash script(And, OR, NOT)