wget -nd -r -l 2 -A jpg,jpeg,png,gif http://example.com
Category Archives: Linux
Download whole page from terminal
You can install it with brew install wget or sudo port install wget.
Downloading Folders to my Local via SSH
#scp -r user@host:/path/to/folder/ local-copy-of-folder If you have SSH keys set up, you can tab-complete remote files/folders.
How to pass password to scp command
Use sshpass: sshpass -p “password” scp -r user@example.com:/some/remote/path /some/local/path
Linux reboot system with cron
Edit crontab: sudo crontab -e The first time you might have to choose your preferred editor (like nano) Insert a line like 0 4 * * * /sbin/shutdown -r +5 at the bottom. Explanation: m h dom mon dow command minute hour dayOfMonth Month dayOfWeek commandToRun so the line 0 4 * * * /sbin/shutdown …
Terminal set locale
set locale terminal settings on Mac OS X One of my first experiences with Mac OS, was the locale errors and warnings when using ssh connections. Then I understood, that this was a problem occurred by mac os terminal. Locale settings by default are accepted from ssh client.