Archive for the 'Shell' category

Linux, change timezone

Setting your time zone In /etc the file, localtime, is a link to or copy of a

Linux set timezone

ln -sf /usr/share/zoneinfo/GMT /etc/localtime Other way is to directly copy the proper timezone file and

SSH with no password

a@A:~> ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save

Set date on Linux

For example, set new data to 2 Oct 2006 18:00:00, type the following command as

stdin: is not a tty

Example: ssh -tq server2 uptimme Now it should work!

Configure Linux date

Logged in as root, check which timezone your machine is currently using by executing `date`.

Date: cannot set date: Operation not permitted

VPS Date issue: # vzctl stop <veid> # vzctl set <veid> –save –capability sys_time:on #

Update VPS date on REMOTE SERVER with SSH

Now ust add Cron jobs for: <?php     date_default_timezone_set('GMT+2');     $DataFinala = system("date");     system("ssh

Burn ISO on USB

sh-3.2# diskutil list sh-3.2# diskutil unmountDisk /dev/disk2 sh-3.2# dd if=/Volumes/Stuff/Temp/ubuntu-9.04-netbook-remix-i386.img of=/dev/disk2 bs=1024 sh-3.2# diskutil eject

Look for a keyword in a file

Look for a keyword in a file and point out the name of the file.