Category : General
xcopy
How to copy all doc files xcopy /s /c /y “c:Documents and SettingsMYUSER*.doc” d:BackupsMyLaptopAll_Docs Copies files and directory trees. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/EXCLUDE:file1[+file2][+file3]…] source Specifies the file(s) to [...]
7z
7zip Help [code language="html"] 7z --help 7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30 p7zip Version 9.04 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU) Usage: 7z [...] [...] [] a: Add files to archive b: Benchmark d: Delete files from archive e: Extract files from archive (without using directory names) l: List contents of archive t: Test integrity of [...]
vnc
How to Start Vine Server (OSXvnc) on 5901 port with no authentication on a different port [code language="bash"] Server:~ Slavi$ /Applications/Vine Server.app/OSXvnc-server -rfbnoauth -rfbport 5901 [/code] This is usually considered insecure however I am using this configuration in conjunction with ssh to connect to the LAN network first! I also start the vnc server when [...]
rsync
rsync -e ssh –verbose –stats –compress –recursive –times –perms –links –delete –exclude “*bak” –exclude “.svn” –exclude “*~” –exclude “._*” /var/www/vhosts/domain.com user@domain.com:/var/www/vhosts/domain.com Recommendations: setup keyless login for user@domain.com also the user must have permissions to write in /var/www/vhosts/domain.com