How to download a site using wget [code language="bash"] wget --mirror --convert-links --backup-converted --html-extension -o domain.log http://domain.com/ [/code] Download the file in background. [code language="bash"] wget -bd http://domain.com/file.zip -o file-download.log [/code] Will download all the links from the list.txt file and pretending that it’s Firefox. wget –continue –verbose –input-file=”list.txt” –output-file=”list.log” –user-agent=”Mozilla/5.0 (Windows NT 6.1; [...]
VirtualBox command line usage [code language="bash"] VBoxManage [-v|-version] print version number and exit VBoxManage -nologo ... suppress the logo VBoxManage -convertSettings ... allow to auto-convert settings files VBoxManage -convertSettingsBackup ... allow to auto-convert settings files but create backup copies before VBoxManage -convertSettingsIgnore ... allow to auto-convert settings files but don't explicitly save the results VBoxManage [...]
Create a tar file and verify the tar archive [code language="bash"] tar -cvWf domain.com.tar /var/www/vhosts/domain.com [/code] Related http://www.cyberciti.biz/faq/unix-verify-tape-backup/
Summarize disk usage of each FILE, recursively for directories.
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
dpkg-reconfigure reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure. It will ask configuration questions, much like when the package was first installed. Example: [code language="bash"] dpkg-reconfigure -phigh xserver-xorg [/code]
Examples [code language="bash"] lshw | less [/code] lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and on some PowerPC machines (PowerMac G4 [...]