Linux File management

cp source destination

Copy files. E.g., cp /home/stan/existing_file_name . will copy a file to my current working directory. Use the "-R" option (stands for "recursive") to copy the contents of whole directory trees, e.g. , cp -R my_existing_dir/ ~ will copy a subdirectory under my current working directory to my home directory.


mcopy source destination

Copy a file from/to a DOS filesystem (no mounting of the DOS filesystem is necessary). E.g., mcopy a:\autoexec.bat ~/junk. See man mtools for other commands that can access DOS files without mounting: mdir, mcd, mren, mmove, mdel, mmd, mrd, mformat .... We don't use the mtool commands that often--

Comments

Popular posts from this blog

Linux Shortcuts

Petra, Jordan

PayPal integration in PHP