Ubuntu – Cut and Copy in Ubuntu Command line

clipboardcommand line

How Could i copy or cut a file from a directory to another directory?

I mean in command line!

Best Answer

Simple: type in terminal

For copy

cp /PATH1/file [file2 file3 ...] /PATH2/[newfilename or noting to use the same name]

and for more info about cp use man cp


For cut(move and rename)

mv /PATH1/file /PATH2/[newfilename or noting to use the same name]

and for more info about mv use man mv