User your own timezone in Linux shell

Do you use a hosting provider that has a different timezone than you do? You can change the appearance of the timezone easily, without root access, or playing around with dates and times.

You can use the tzselect command. It will ask you for your Continent, your State/Province, and will output the command you need to modify your timezone.

I live in Brisbane, Australia, so my timezone is Australia/Brisbane. All I needed to do what append one line to my .bash_profile

echo “export TZ=Australia/Brisbane” >> .bash_profile

Now date returns the correct date and time, and all my files have local timestamps.

Really, really bad hosting!

Do not sign up with greenhostit.com. If you require SSH access, don’t use them. If you follow instructions that their support recommends, you’ll get blocked from SSH access as a result.

Very bad web hosting

About Brand Management, Stephanie writes:

There simply is no better salesperson for your business than a satisfied customer. Stay involved. Monitor projects and keep them on schedule. Do not be late or miss project milestones. This is like instant death. Lose money. That’s right. Even if you lose money on a client or customer, that one individual can bad mouth you globally today. Check out Angieslist.com if you don’t believe it. You may lose some cash up front but, again, a happy client is your best salesperson – and they’re FREE. Sweet.

Emphasis mine.

Fixing partition table in linux with sfdisk

Manipulating partition tables on MS-DOS labelled hard disk (the most common type as of this writing) is an extemely important skill to have as a System Administrator. If one or more partitions gets deleted or modified in an unintentional way, it is imperative that one know how to restore or modify the partitions to rectify the problem.

Continue reading

Declaration of the Occupation of New York City

As we gather together in solidarity to express a feeling of mass injustice, we must not lose sight of what brought us together. We write so that all people who feel wronged by the corporate forces of the world can know that we are your allies. As one people, united, we acknowledge the reality: that the future of the human race requires the cooperation of its members; that our system must protect our rights, and upon corruption of that system, it is up to the individuals to protect their own rights, and those of their neighbors; that a democratic government derives its just power from the people, but corporations do not seek consent to extract wealth from the people and the Earth; and that no true democracy is attainable when the process is determined by economic power. Continue reading

PAX: the universal UNIX and GNU Linux archiver

pax, which means peace in Latin, combines the best of both cpio and tar, which are found in nearly all modern GNU/Linux distributions. However, it appears as though it hasn’t been updated in several years!

Benefits include:

  • can use ‘find’ to get list of files, which is then piped through to pax (cpio style)
  • can read and write many archive formats, including ustar (default), cpio, and many others
  • can do copy-pass mode (copy entire directory tree to another location)
  • can do gzip compression on the fly (tar style)

man pax will show you more example