03 Jan, 2011
Timezone in linux command line
Articles related to timezone in linux command line
http://digitalpbk.blogspot.com/2009/05/crontab-server-timezone-php-date.html
to set the
Timezone in the code written.date_default_
timezone_set(Timezone)is the PHP function to set the
Timezone in PHP. This can take care of most of the
timezone anomalies that can occur in your script when using PHP's Date Function.
Timezone is a string, for example for Indian Standard Time it is "Asia/Calcutta", for LA it is "America/Los_Angeles" etc. Checkout PHP
Timezone list for a complete list of
timezones.ShellIn a shell the date
command gives you the localtime ...
Published 2 years, 8 months ago
http://digitalpbk.com/windows/linux-style-command-line-quick-edit-right-click-paste
Linux style
command line for Windows, Drag to Select, Right click to paste
Ever wondered if you could want more out of the windows
command line ?
Usually on windows
command line in order to select a piece of text, you have to right click the
command line title and select mark and then mark the piece of text selected and press enter. And to paste we have to right click on the title and in the Edit menu select paste, which is a painful way of doing it.
On
linux on the other hand,
command line ...
Published 1 year, 11 months ago
http://digitalpbk.com/projects/imtools-linux-command-line-tool-convert-images-one-format-another-jpeg-bmp-png
IMTools -
Linux command line tool convert images from one format to another
This is a tool, I wrote for my Main Project a while back so I thought of putting it up here. The suite imtool was written to convert JPEG file to a RAW format for use with FPGA.
The imtool utility can do much more than just JPEG to RAW, it can handle the following file format changes.
JPEG to RAW, BMPBMP to RAW,JPEGPNG to RAW,BMP,JPG
It can also render an image preview to a window using OpenGL.
OS:
Linux
Linux ...
Published 2 years, 2 months ago
http://digitalpbk.com/google-go/installing-google-go-linux-ubuntu
://go.googlecode.com/hg/ $GOROOT
cd $GOROOT/src
./all.bash
Installing Google Go in Steps
The following packages are required for installing Google Go : bison, make, gcc, libc6-dev, ed, mercurial. To install run the
command
sudo apt-get install bison make gcc libc6-dev ed mercurial
Edit the .bashrc file to set up the environment variables, .bashrc file resides in your home folder (/home/username/). Add the following
lines if you are using ubuntu x86 (or unsure)
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=
linux ...
Published 2 years, 2 months ago
http://digitalpbk.blogspot.com/2009/03/reset-root-password-linux-fedora-debian.html
.Edit Choose the OS you want to boot into and press "e" to edit.Edit Find the
line that corresponds to kernel, and again press "e". Add the following
line to the end of the
line. single init=/bin/bashThen press enter, and then "b" to boot the OS. After booting you will get a root shell.Mounting the filesystem in readwrite mode: Type in the following
command to remount the filesystem in read write mode.mount -o remount,rw / Not doing this step might give the following error ...
Published 2 years, 11 months ago
http://digitalpbk.com/cygwin/how-clear-screen-cls-command-not-found
Cygwin: Clear screen
command, How to clear the screen ?
Some one may be wondering where is the clear
command on cygwin. If we type either cls or clear we would be shown bash: clear:
command not found. So there are many fancy ways to clear the
command line prompt, but the one I liked the best is
Ctrl + L
Simple, just press Control + L on the keyboard and your
command line prompt cleans up.
:)
Cygwin
Software ...
Published 1 year, 10 months ago
http://digitalpbk.blogspot.com/2008/11/ubuntu-remove-old-kernel-grub-list-long.html
and a second one just prior to the new one, just in case your system doesn't do well with the new kernel.UpdatePlease be sure to type the
command exactly as such, dont miss any of the hyphens (-) and dots (.)Missing something would end up uninstalling all of your kernels and hence making the system not bootable. Correct
commands :sudo apt-get remove --purge 2.6.27-7-*sudo apt-get remove --purge 2.6.27-9-*etc
Command Line Output:arun@server4:~$ sudo apt-get remove --purge 2.6.27-9-*Reading package lists ...
Published 3 years, 3 months ago
http://digitalpbk.blogspot.com/2007/05/ansi-escape-sequences.html
3 for 80 x 25 color 4 for 320 x 200 color graphics 5 for 320 x 200 b & w graphics 6 for 640 x 200 b & w graphics 7 to wrap at end of
line ESC[=#;7l or ESC[=l or Resets mode # set with above
command ESC[=0l or ESC[?7lKeyboard Reassignments: ESC[#;#;...p Keyboard reassignment. The first ASCII ...
Published 4 years, 9 months ago
http://digitalpbk.blogspot.com/2007/03/auto-mounting-file-systems-in-linux.html
Auto mounting File Systems in
Linux
Some
Linux Distros (like Fedora Core 6 FC6) do not automatically mount the local file systems such as FAT/FAT32 systems that belong to the windows drive. To mount and unmount file systems you must be logged on as a root user or must have root privilegesMounting ManuallyFirst change to root@localhost ~]$ suPassword: Passwordroot@localhost ]# mount -t Filesystem Device DirectoryMounting the file system manually is done by the mount
command.Filesystem is vfat ...
Published 4 years, 10 months ago
http://digitalpbk.blogspot.com/2006/11/openingclosing-of-cd-drive-from-vb.html
open", strReturn, 127, 0)End SubPublic Sub CloseCDDrive() 'Call me to close the CD Drive Call mciSendString("set CDAudio door closed", strReturn, 127, 0)End SubmciSendString is an alias of function mciSendStringA in winmm.dllI guess the code speaks for itself. (Tested on XP, VB6).Related: In
Linux, from the
command line:To open the drive:eject DriveNameHereTo close the drive:eject -t DriveNameHereIf your not sure what the drive name is, just look in /etc/fstab:cat /etc/fstabIn my ...
Published 5 years, 2 months ago
Related help topics for timezone in linux command line
More keywords like timezone in linux command line
More pages for timezone in linux command line