Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, June 16, 2008

od - dump files in octal and other formats

NAME

od - dump files in octal and other formats

SYNOPSIS

od [OPTION]... [FILE]...
od --traditional [FILE] [[+]OFFSET [[+]LABEL]]

DESCRIPTION

Write an unambiguous representation, octal bytes by default, of FILE to standard output. With more than one FILE argument, concatenate them in the listed order to form the input. With no FILE, or when FILE is -, read standard input.

All arguments to long options are mandatory for short options.

-A, --address-radix=RADIX
decide how file offsets are printed
-j, --skip-bytes=BYTES
skip BYTES input bytes first
-N, --read-bytes=BYTES
limit dump to BYTES input bytes
-s, --strings[=BYTES]
output strings of at least BYTES graphic chars
-t, --format=TYPE
select output format or formats
-v, --output-duplicates
do not use * to mark line suppression
-w, --width[=BYTES]
output BYTES bytes per output line
--traditional
accept arguments in traditional form
--help
display this help and exit
--version
output version information and exit

Traditional format specifications may be intermixed; they accumulate:

-a
same as -t a, select named characters
-b
same as -t oC, select octal bytes
-c
same as -t c, select ASCII characters or backslash escapes
-d
same as -t u2, select unsigned decimal shorts
-f
same as -t fF, select floats
-h
same as -t x2, select hexadecimal shorts
-i
same as -t d2, select decimal shorts
-l
same as -t d4, select decimal longs
-o
same as -t o2, select octal shorts
-x
same as -t x2, select hexadecimal shorts

For older syntax (second call format), OFFSET means -j OFFSET. LABEL is the pseudo-address at first byte printed, incremented when dump is progressing. For OFFSET and LABEL, a 0x or 0X prefix indicates hexadecimal, suffixes may be . for octal and b for multiply by 512.

TYPE is made up of one or more of these specifications:

a
named character
c
ASCII character or backslash escape
d[SIZE]
signed decimal, SIZE bytes per integer
f[SIZE]
floating point, SIZE bytes per integer
o[SIZE]
octal, SIZE bytes per integer
u[SIZE]
unsigned decimal, SIZE bytes per integer
x[SIZE]
hexadecimal, SIZE bytes per integer

SIZE is a number. For TYPE in doux, SIZE may also be C for sizeof(char), S for sizeof(short), I for sizeof(int) or L for sizeof(long). If TYPE is f, SIZE may also be F for sizeof(float), D for sizeof(double) or L for sizeof(long double).

RADIX is d for decimal, o for octal, x for hexadecimal or n for none. BYTES is hexadecimal with 0x or 0X prefix, it is multiplied by 512 with b suffix, by 1024 with k and by 1048576 with m. Adding a z suffix to any type adds a display of printable characters to the end of each line of output. --string without a number implies 3. --width without a number implies 32. By default, od uses -A o -t d2 -w 16.

Wednesday, June 04, 2008

Desktop Linux Face-Off: Ubuntu 8.04 vs. Fedora 9

Over the past decade, Linux has emerged from a herd of obscure and nerdy operating systems to warrant a place in even the most technologically unsophisticated business environments. And in the past three years, a few distributions have made stupendous leaps in performance and usability, winning the affection of millions of mainstream desktop users.

The recent releases of Ubuntu 8.04 and Fedora 9--two top Linux distributions--mark another step forward in the evolution of the Linux desktop. I've been running both of them to see which offers the better blend of usability and advanced features.

Ubuntu 8.04 Hardy Heron

Since the release of version 5.10 (aka Breezy Badger) in 2005, Ubuntu Linux has stood apart from hundreds of other Linux distributions, capturing the attention of penguin heads and of users seeking a free, stable, usable alternative to Microsoft Windows. With its click-and-go Live CD installation and its support for a broad base of hardware devices, Ubuntu built a reputation for ease of use that changed the way many people think about Linux. PC World was so impressed that Ubuntu landed on our list of "The 100 Best Products of 2006," a first for any flavor of Linux.

The latest version of Ubuntu, 8.04 (aka Hardy Heron, or just Hardy for short), builds strongly on the foundation laid by its predecessors. This release is a Long Term Support edition, to be supported until April 2011, and Hardy Heron shows more polish and refinement than any other Linux distribution I've seen.

Ubuntu 8.04's Brasero disc-burning utility; click for enlarged image.

The operating system comes packed with new features, beginning with a revised kernel (2.6.24), the latest version of Xorg (7.3), and the most recent Gnome desktop interface (2.22.1). On top of these advances, Hardy offers several new default applications, including Brasero for CD/DVD burning, the Transmission BitTorrent client, and Vinagre virtual network computing software for remote desktop viewing. You also get support for enhanced security via SELinux (Security-Enhanced Linux)--but in Ubuntu 8.04 it's not installed by default, as it is in Fedora 9.

Ubuntu upgrading; click for enlarged image.

From the get-go, the Hardy Heron experience is smooth. I installed it on several machines, including an aging laptop with a Via graphics controller that's notorious for making a hash of things in Linux. Each installation found and recognized all of my hardware without requiring a reboot. Even my media card slot, which Windows can never locate a driver for on its own, worked right off the bat. Existing Ubuntu users enjoy even slicker installation: The Hardy Heron upgrade comes through the Update Manager, and one click initiates a totally automated --albeit fairly long--upgrade process that leaves all of the user's data in place.

Ubuntu's automated Hardware Drivers utility seeks out proprietary drivers for devices in your system, simplifying the task of grabbing the latest proprietary nVidia driver, for instance, so that you can enable Desktop Effects. Some hard-core open-source advocates disapprove of Ubuntu's compromise with the closed-source world, but end users who care more about usability than ideology will find this arrangement a boon.

Apart from the new default apps, Ubuntu hasn't changed much in overall look and feel this time around. Sure, there's artsy heron-themed wallpaper, but longtime Ubuntu desktop users will find little else to poke at in this version. That development indicates that Ubuntu has matured to the point where it can focus on refining its feature set rather than massively reworking its elements in each new version.

The changes in the default apps seem judicious rather than sweeping. Brasero, for instance, is a far more complete disc-burning utility than Serpentine, the relatively simple CD burner found in previous versions of Ubuntu.

Hardy Heron still lacks a few features that I had hoped to see as defaults by now, such as a Desktop Effects Manager for Gnome. Downloading Compiz Configuration Settings Manager through apt-get (the command-line tool for handling packages) isn't hard, but it should really be there in the first place. Without it, newbies have no idea how to turn on the desktop cube they've heard so much about. Also still absent is a decent theme manager to take advantage of Desktop Effects.

Minor quibbles aside, Ubuntu 8.04 is the best-assembled and most polished Linux distribution I've ever used. Ubuntu 8.04 performs well where Windows XP and Vista screech to a halt, particularly on older hardware. And since it comes with OpenOffice.org, Firefox, Evolution Mail, and a host of other apps right out of the box, it may be the best way to breathe new life into a seemingly moribund PC.

Fedora 9

Fedora was born as an all-open-source alternative to the business-centric Red Hat Linux. As such, it enjoys a solid legacy of Linux development. Unfortunately, as the nonprofit cousin of a major commercial distribution, Fedora doesn't always seem to get the attention it deserves. But last year, Fedora doffed the shadow of rival Ubuntu by releasing of Fedora 8, which offered a simple, graphical installer and the best hardware support we'd seen from the Fedora distribution. Nevertheless, it lagged behind Ubuntu in ease of installation and overall usability--largely because its commitment to Free and Open Source Software (FOSS) left it without complete drivers for some major hardware, including nVidia and ATI cards and various wireless cards. Any astute Linux user could add these, certainly, but the process was too geeky for average Joes who just wanted to give Linux a try.

With version 9, Fedora has stepped up its ease-of-use game. Gnome 2.22 brings a host of great new features, including support for Webcam videos. A prerelease version of Xorg 7.4, however, causes problems with nVidia cards, preventing Desktop Effects--which is now standard in Fedora 9--from working. At posting time, this problem remained unresolved, though contributors to the Fedora Forums suggested that it would soon be corrected. Fedora 9 also has a newer kernel (2.6.25) than Ubuntu 8.04.

Fedora 9 dual-boot installation; click for enlarged image.

One of the most important changes in the new Fedora is immediately visible: its Anaconda installer can dynamically resize NTFS hard-drive partitions, making the task of adding Fedora to existing Windows installations much easier. Ubuntu users have long enjoyed a similar feature, so it's nice to see Fedora catch up. Another new feature of the installer is a one-click option for drive encryption. Overall, Fedora's revamped install routine is the distribution's best yet, and it nearly matches Ubuntu's in simplicity and ease of use.

PulseAudio in Fedora 9; click for enlarged image.

I liked Fedora 9's new PackageKit, a graphical interface for Fedora's Yum update utility, too. PackageKit is the nicest update manager I've tried in Linux, with big, friendly icons for bug fixes and security updates. Also, like Ubuntu 8.04, Fedora 9 now uses PulseAudio to control sound devices throughout the OS.

By default, Fedora includes SELinux, which enforces security policies throughout the OS. Developed by the U.S. National Security Agency, this app does an excellent job of alerting users to potential security threats and managing user authentication. Most users will find that the biggest benefit of SELinux is its management of root user authority: The program alerts you when you've had root privileges activated for more than a few minutes, so you can minimize your exposure from this vulnerability.

For users who are already familiar with Linux, Fedora 9 is an excellent choice. Robust security features and installation options make it somewhat more versatile than Ubuntu, which offers a more streamlined (and therefore more restricted) installation. For most users, though, including millions interested in trying Linux for the first time, Fedora lacks the polish and ready-to-run simplicity of its more popular rival.

Ubuntu 8.0.4 offers a level of functionality comparable to that of Mac OS and Windows, from delivery to installation to daily use. Unfortunately, the ties that bind all Linux distributions--primarily a lack of support for major Windows- and Mac-based business, design, and gaming applications--still hold Ubuntu back from mass popularity. For users with such moderate computing needs as Web browsing, e-mail, and basic document creation, however, Hardy is a compelling option.

Ubuntu 8.04
PCW94

The best all-around Linux distribution available today.
Free
Ubuntu's Web site
Fedora 9
PCW83

An excellent choice for experienced Linux users.
Free
Fedora's Web site

Wednesday, May 28, 2008

STOPPED JOBS and job control...

When you try to exit a window or logout, you may get a message:

There are stopped jobs.

This means that a program you were running has been suspended (usually by
typing Ctrl-Z) and has not been properly terminated. If you just try to exit
again, the system will automatically terminate those jobs. If you want to see
what those jobs are, use the 'jobs' command. Just type:

jobs

You will see a listing, which may look like this:

[1] - Stopped foo
[2] + Stopped bar

If you want to continue using one of the jobs in the list, use the 'fg'
command. For example, if you wanted to continue using 'foo' in the above
listing, type this:

fg %1

Actually, the 'fg' part is optional. So, you could just type:

%1

...and get the same effect. If instead you want to just terminate a job, use
the 'kill' command. For example, if you wanted to kill 'bar' in the above
listing, type this:

kill %2

The information below describes jobs in much more detail, if you're
interested.

The shell associates a job with each pipeline (most often a single
command/program) It keeps a table of current jobs, printed by the "jobs"
command, and assigns them small integer numbers. When a job is started
asynchronously with '&' (started in the background), the shell prints a line
which looks like:

[1] 1234

indicating that the job that was started asynchronously was job number 1 and
had one (top-level) process, whose process ID number was 1234.

If you are running a job and wish to do something else, you may type Ctrl-Z,
which sends a STOP signal to the current job. The shell will then normally
indicate that the job has been 'Stopped', and print another prompt. You can
then manipulate the state of this job, putting it in the background with the
'bg' command, or run some other commands and then eventually bring the job
back into the foreground with the foreground command 'fg'. A Ctrl-Z takes
effect immediately and is like an interrupt in that pending output and unread
input are discarded when it is typed. There is another special key, Ctrl-Y,
which does not generate a STOP signal until a program attempts to read(2) it.
This can be typed ahead when you have prepared some commands for a job which
you wish to stop after it has read them.

A job being run in the background will stop if it tries to read from the
terminal. Background jobs are normally allowed to produce output, but this
can be disabled by giving the command 'stty tostop'. If you set this tty
option, then background jobs will stop when they try to produce output like
they do when they try to read input.

There are several ways to refer to jobs in the shell. The character '%'
introduces a job name. If you wish to refer to job number 1, you can name it
as '%1'. Just naming a job brings it to the foreground; thus '%1' is a
synonym for 'fg %1', bringing job 1 back into the foreground. Similarly
saying '%1 &' resumes job 1 in the background. Jobs can also be named by
prefixes of the string typed in to start them, if these prefixes are
unambiguous, thus '%ex' would normally restart a suspended ex(1) job, if there
were only one suspended job whose name began with the string 'ex'. It is also
possible to say '%?string' which specifies a job whose text contains string,
if there is only one such job.

The shell maintains a notion of the current and previous jobs. In output
pertaining to jobs, the current job is marked with a '+' and the previous job
with a '-'. The abbreviation '%+' refers to the current job and '%-' refers
to the previous job. For close analogy with the syntax of the history
mechanism, '%%' is also a synonym for the current job.

Friday, May 09, 2008

cron job details...

To see all the Cron jobs aunder one user use command ..
>>> crontab -l

To add a new Cron job for a user u can use the command...
>>>> crontab -e

While adding one job to the crontab u have to follow following format...

Syntax of crontab

Your cron job looks like as follows:
1 2 3 4 5 /path/to/command arg1 arg2

Where,

  • 1: Minute (0-59)
  • 2: Hours (0-23)
  • 3: Day (0-31)
  • 4: Month (0-12 [12 == December])
  • 5: Day of the week(0-7 [7 or 0 == sunday])
  • /path/to/command - Script or command name to schedule

Same above five fields structure can be easily remembered with following diagram:

* * * * * command to be executed
- - - - -
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)

Use of operators

An operator allows you to specifying multiple values in a field. There are three operators:

  1. The asterisk (*) : This operator specifies all possible values for a field. For example, an asterisk in the hour time field would be equivalent to every hour or an asterisk in the month field would be equivalent to every month.
  2. The comma (,) : This operator specifies a list of values, for example: "1,5,10,15,20, 25".
  3. The dash (-) : This operator specifies a range of values, for example: "5-15" days , which is equivalent to typing "5,6,7,8,9,....,13,14,15" using the comma operator.


one example :
55 00 * * * env OMC_TOP=/usr/omc /usr/omc/sbin/maintain_script -r -d 7 /usr/omc/logs gpomcaudit\* #MOMC42 parser audit files +7 days

Thursday, March 27, 2008

Handling of signals in Shell scripting..

trap [-lp] [arg] [sigspec ...]

The command arg is to be read and executed when the shell receives signal(s) sigspec। If arg is absent or -, all specified signals are reset to their original values (the values they had upon entrance to the shell)।
If arg is the null string the signal specified by each sigspec is ignored by the shell and by the commands it invokes।
If arg is not present and -p has been supplied, then the trap commands associated with each sigspec are displayed।
If no arguments are supplied or if only -p is given, trap prints the list of commands associated with each signal number।
Each sigspec is either a signal name defined in <signal.h>, or a signal number।
If a sigspec is EXIT (0) the command arg is executed on exit from the shell। If a
sigspec is DEBUG, the command arg is executed after every simple command (see SHELL GRAMMAR above)।
If a sigspec is ERR, the command arg is executed whenever a simple command has a non-zero exit status।
The ERR trap is not executed if the failed command is part of an until or while loop, part of an if statement, part of a && or || list, or if the command's return value is being inverted via !. The -l option causes the shell to print a list of signal names and their corresponding numbers। Signals ignored upon entry to the shell cannot be trapped or reset। Trapped signals are reset to their original values in a child process when it is created। The return status is false if any sigspec is invalid; otherwise trap returns true.

Wednesday, March 26, 2008

To Take Backup of Files in Linux/+

cpio - copy files to and from archives

cpio {-o|--create} [-0acvABLV] [-C bytes] [-H format] [-M message] [-O [[user@]host:]archive] [-F [[user@]host:]archive] [--file=[[user@]host:]archive] [--format=format] [--message=message] [--null] [--reset-access-time] [--verbose] [--dot] [--append] [--block-size=blocks] [--dereference] [--io-size=bytes] [--quiet] [--force-local] [--rsh-command=command] [--help] [--version] <> archive]

cpio {-i|--extract} [-bcdfmnrtsuvBSV] [-C bytes] [-E file] [-H format] [-M message] [-R [user][:.][group]] [-I [[user@]host:]archive] [-F [[user@]host:]archive] [--file=[[user@]host:]archive] [--make-directories] [--nonmatching] [--preserve-modification-time] [--numeric-uid-gid] [--rename] [-t|--list] [--swap-bytes] [--swap] [--dot] [--unconditional] [--verbose] [--block-size=blocks] [--swap-halfwords] [--io-size=bytes] [--pattern-file=file] [--format=format] [--owner=[user][:.][group]] [--no-preserve-owner] [--message=message] [--force-local] [--no-absolute-filenames] [--sparse] [--only-verify-crc] [--quiet] [--rsh-command=command] [--help] [--version] [pattern...] [< archive]

cpio {-p|--pass-through} [-0adlmuvLV] [-R [user][:.][group]] [--null] [--reset-access-time] [--make-directories] [--link] [--quiet] [--preserve-modification-time] [--unconditional] [--verbose] [--dot] [--dereference] [--owner=[user][:.][group]] [--no-preserve-owner] [--sparse] [--help] [--version] destination-directory < name-list


cpio copies files into or out of a cpio or tar archive, which is a file that contains other files plus information about them, such as their file name, owner, timestamps, and access permissions. The archive can be another file on the disk, a magnetic tape, or a pipe. cpio has three operating modes.

In copy-out mode, cpio copies files into an archive. It reads a list of filenames, one per line, on the standard input, and writes the archive onto the standard output. A typical way to generate the list of filenames is with the find command; you should give find the -depth option to minimize problems with permissions on directories that are unwritable or not searchable.

In copy-in mode, cpio copies files out of an archive or lists the archive contents. It reads the archive from the standard input. Any non-option command line arguments are shell globbing patterns; only files in the archive whose names match one or more of those patterns are copied from the archive. Unlike in the shell, an initial `.' in a filename does match a wildcard at the start of a pattern, and a `/' in a filename can match wildcards. If no patterns are given, all files are extracted.

In copy-pass mode, cpio copies files from one directory tree to another, combining the copy-out and copy-in steps without actually using an archive. It reads the list of files to copy from the standard input; the directory into which it will copy them is given as a non-option argument.

cpio supports the following archive formats: binary, old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar, and POSIX.1 tar. The binary format is obsolete because it encodes information about the files in a way that is not portable between different machine architectures. The old ASCII format is portable between different machine architectures, but should not be used on file systems with more than 65536 i-nodes. The new ASCII format is portable between different machine architectures and can be used on any size file system, but is not supported by all versions of cpio; currently, it is only supported by GNU and Unix System V R4. The crc format is like the new ASCII format, but also contains a checksum for each file which cpio calculates when creating an archive and verifies when the file is extracted from the archive. The HPUX formats are provided for compatibility with HPUX's cpio which stores device files differently.

The tar format is provided for compatability with the tar program. It can not be used to archive files with names longer than 100 characters, and can not be used to archive "special" (block or character devices) files. The POSIX.1 tar format can not be used to archive files with names longer than 255 characters (less unless they have a "/" in just the right place).

By default, cpio creates binary format archives, for compatibility with older cpio programs. When extracting from archives, cpio automatically recognizes which kind of archive it is reading and can read archives created on machines with a different byte-order.

OPTIONS

-0, --null
In copy-out and copy-pass modes, read a list of filenames terminated by a null character instead of a newline, so that files whose names contain newlines can be archived. GNU find is one way to produce a list of null-terminated filenames.
-a, --reset-access-time
Reset the access times of files after reading them, so that it does not look like they have just been read.
-A, --append
Append to an existing archive. Only works in copy-out mode. The archive must be a disk file specified with the -O or -F (--file) option.
-b, --swap
In copy-in mode, swap both halfwords of words and bytes of halfwords in the data. Equivalent to -sS. Use this option to convert 32-bit integers between big-endian and little-endian machines.
-B
Set the I/O block size to 5120 bytes. Initially the block size is 512 bytes.
--block-size=BLOCK-SIZE
Set the I/O block size to BLOCK-SIZE * 512 bytes.
-c
Identical to "-H newc", use the new (SVR4) portable format. If you wish the old portable (ASCII) archive format, use "-H odc" instead.
-C IO-SIZE, --io-size=IO-SIZE
Set the I/O block size to IO-SIZE bytes.
-d, --make-directories
Create leading directories where needed.
-E FILE, --pattern-file=FILE
In copy-in mode, read additional patterns specifying filenames to extract or list from FILE. The lines of FILE are treated as if they had been non-option arguments to cpio.
-f, --nonmatching
Only copy files that do not match any of the given patterns.
-F, --file=archive
Archive filename to use instead of standard input or output. To use a tape drive on another machine as the archive, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file).
--force-local
With -F, -I, or -O, take the archive file name to be a local file even if it contains a colon, which would ordinarily indicate a remote host name.
-H FORMAT, --format=FORMAT
Use archive format FORMAT. The valid formats are listed below; the same names are also recognized in all-caps. The default in copy-in mode is to automatically detect the archive format, and in copy-out mode is "bin".

bin
The obsolete binary format.
odc
The old (POSIX.1) portable format.
newc
The new (SVR4) portable format, which supports file systems having more than 65536 i-nodes.
crc
The new (SVR4) portable format with a checksum added.
tar
The old tar format.
ustar
The POSIX.1 tar format. Also recognizes GNU tar archives, which are similar but not identical.
hpbin
The obsolete binary format used by HPUX's cpio (which stores device files differently).
hpodc
The portable format used by HPUX's cpio (which stores device files differently).

-i, --extract
Run in copy-in mode.
-I archive
Archive filename to use instead of standard input. To use a tape drive on another machine as the archive, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file).
-k
Ignored; for compatibility with other versions of cpio.
-l, --link
Link files instead of copying them, when possible.
-L, --dereference
Dereference symbolic links (copy the files that they point to instead of copying the links).
-m, --preserve-modification-time
Retain previous file modification times when creating files.
-M MESSAGE, --message=MESSAGE
Print MESSAGE when the end of a volume of the backup media (such as a tape or a floppy disk) is reached, to prompt the user to insert a new volume. If MESSAGE contains the string "%d", it is replaced by the current volume number (starting at 1).
-n, --numeric-uid-gid
In the verbose table of contents listing, show numeric UID and GID instead of translating them into names. Also extracts tar archives using the numeric UID and GID instead of the user/group names. (cpio archives are always extracted using the numeric UID and GID.)
--no-absolute-filenames
In copy-in mode, create all files relative to the current directory, even if they have an absolute file name in the archive.
--no-preserve-owner
In copy-in mode and copy-pass mode, do not change the ownership of the files; leave them owned by the user extracting them. This is the default for non-root users, so that users on System V don't inadvertantly give away files.
-o, --create
Run in copy-out mode.
-O archive
Archive filename to use instead of standard output. To use a tape drive on another machine as the archive, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file).
--only-verify-crc
When reading a CRC format archive in copy-in mode, only verify the CRC's of each file in the archive, don't actually extract the files.
-p, --pass-through
Run in copy-pass mode.
--quiet
Do not print the number of blocks copied.
-r, --rename
Interactively rename files.
-R [user][:.][group], --owner [user][:.][group]
In copy-out and copy-pass modes, set the ownership of all files created to the specified user and/or group. Either the user or the group, or both, must be present. If the group is omitted but the ":" or "." separator is given, use the given user's login group. Only the super-user can change files' ownership.
--rsh-command=COMMAND
Notifies mt that it should use COMMAND to communicate with remote devices instead of /usr/bin/ssh or /usr/bin/rsh.
--sparse
In copy-in and copy-pass modes, write files with large blocks of zeros as sparse files.
-s, --swap-bytes
In copy-in mode, swap the bytes of each halfword (pair of bytes) in the files.
-S, --swap-halfwords
In copy-in mode, swap the halfwords of each word (4 bytes) in the files.
-t, --list
Print a table of contents of the input.
-u, --unconditional
Replace all files, without asking whether to replace existing newer files with older files.
-v, --verbose
List the files processed, or with -t, give an `ls -l' style table of contents listing. In a verbose table of contents of a ustar archive, user and group names in the archive that do not exist on the local system are replaced by the names that correspond locally to the numeric UID and GID stored in the archive.
-V --dot
Print a "." for each file processed.
--version
Print the cpio program version number and exit.

Thursday, March 20, 2008

stat() function



stat
, fstat, lstat - get file status

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

int stat(const char *path, struct stat *buf);
int fstat(int filedes, struct stat *buf);
int lstat(const char *path, struct stat *buf);


Description

These functions return information about a file. No permissions are required on the file itself, but -- in the case of stat() and lstat() -- execute (search) permission is required on all of the directories in path that lead to the file.

stat() stats the file pointed to by path and fills in buf.

lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to.

fstat() is identical to stat(), except that the file to be stat-ed is specified by the file descriptor filedes.


All of these system calls return a stat structure, which contains the following fields:

struct stat {
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* inode number */
mode_t st_mode; /* protection */
nlink_t st_nlink; /* number of hard links */
uid_t st_uid; /* user ID of owner */
gid_t st_gid; /* group ID of owner */
dev_t st_rdev; /* device ID (if special file) */
off_t st_size; /* total size, in bytes */
blksize_t st_blksize; /* blocksize for filesystem I/O */
blkcnt_t st_blocks; /* number of blocks allocated */
time_t st_atime; /* time of last access */
time_t st_mtime; /* time of last modification */
time_t st_ctime; /* time of last status change */
};
The following flags are defined for the st_mode field:
S_IFMT 0170000 bitmask for the file type bitfields
S_IFSOCK 0140000 socket
S_IFLNK 0120000 symbolic link
S_IFREG 0100000 regular file
S_IFBLK 0060000 block device
S_IFDIR 0040000 directory
S_IFCHR 0020000 character device
S_IFIFO 0010000 FIFO
S_ISUID 0004000 set UID bit
S_ISGID 0002000 set-group-ID bit (see below)
S_ISVTX 0001000 sticky bit (see below)
S_IRWXU 00700 mask for file owner permissions
S_IRUSR 00400 owner has read permission
S_IWUSR 00200 owner has write permission
S_IXUSR 00100 owner has execute permission
S_IRWXG 00070 mask for group permissions
S_IRGRP 00040 group has read permission
S_IWGRP 00020 group has write permission
S_IXGRP 00010 group has execute permission
S_IRWXO 00007 mask for permissions for others (not in group)
S_IROTH 00004 others have read permission
S_IWOTH 00002 others have write permission
S_IXOTH 00001 others have execute permission

Linux Notes

Since kernel 2.5.48, the stat structure supports nanosecond resolution for the three file timestamp fields. Glibc exposes the nanosecond component of each field using names either of the form st_atim.tv_nsec, if the _BSD_SOURCE or _SVID_SOURCE feature test macro is defined, or of the form st_atimensec, if neither of these macros is defined. On file systems that do not support sub-second timestamps, these nanosecond fields are returned with the value 0.

For most files under the /proc directory, stat() does not return the file size in the st_size field; instead the field is returned with the value 0.

Return Value

On success, zero is returned. On error, -1 is returned, and errno is set appropriately.

Wednesday, March 19, 2008

Linux CLI commands

CommandDescription
•apropos whatisShow commands pertinent to string. See also threadsafe
•man -t man | ps2pdf - > man.pdfmake a pdf of a manual page
which commandShow full path name of command
time commandSee how long a command takes
•time catStart stopwatch. Ctrl-d to stop. See also sw
•nice infoRun a low priority command (The "info" reader in this case)
•renice 19 -p $$Make shell (script) low priority. Use for non interactive tasks
dir navigation
•cd -Go to previous directory
•cdGo to $HOME directory
(cd dir && command)Go to dir, execute command and return to current dir
•pushd .Put current dir on stack so you can popd back to it
•alias l='ls -l --color=auto'quick dir listing
•ls -lrtList files by date. See also newest and find_mm_yyyy
•ls /usr/bin | pr -T9 -W$COLUMNSPrint in 9 columns to width of terminal
find -name '*.[ch]' | xargs grep -E 'expr'Search 'expr' in this dir and below. See also findrepo
find -type f -print0 | xargs -r0 grep -F 'example'Search all regular files for 'example' in this dir and below
find -maxdepth 1 -type f | xargs grep -F 'example'Search all regular files for 'example' in this dir
find -maxdepth 1 -type d | while read dir; do echo $dir; echo cmd2; doneProcess each item with multiple commands (in while loop)
•find -type f ! -perm -444Find files not readable by all (useful for web site)
•find -type d ! -perm -111Find dirs not accessible by all (useful for web site)
•locate -r 'file[^/]*\.txt'Search cached index for names. This re is like glob *file*.txt
•look referenceQuickly search (sorted) dictionary for prefix
•grep --color reference /usr/share/dict/wordsHighlight occurances of regular expression in dictionary
archives and compression
gpg -c fileEncrypt file
gpg file.gpgDecrypt file
tar -c dir/ | bzip2 > dir.tar.bz2Make compressed archive of dir/
bzip2 -dc dir.tar.bz2 | tar -xExtract archive (use gzip instead of bzip2 for tar.gz files)
tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg'Make encrypted archive of dir/ on remote machine
find dir/ -name '*.txt' | tar -c --files-from=- | bzip2 > dir_txt.tar.bz2Make archive of subset of dir/ and below
find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parentsMake copy of subset of dir/ and below
( tar -c /dir/to/copy ) | ( cd /where/to/ && tar -x -p )Copy (with permissions) copy/ dir to /where/to/ dir
( cd /dir/to/copy && tar -c . ) | ( cd /where/to/ && tar -x -p )Copy (with permissions) contents of copy/ dir to /where/to/
( tar -c /dir/to/copy ) | ssh -C user@remote 'cd /where/to/ && tar -x -p' Copy (with permissions) copy/ dir to remote:/where/to/ dir
dd bs=1M if=/dev/sda | gzip | ssh user@remote 'dd of=sda.gz'Backup harddisk to remote machine
rsync (Use the --dry-run option for testing)
rsync -P rsync://rsync.server.com/path/to/file fileOnly get diffs. Do multiple times for troublesome downloads
rsync --bwlimit=1000 fromfile tofileLocally copy with rate limit. It's like nice for I/O
rsync -az -e ssh --delete ~/public_html/ remote.com:'~/public_html'Mirror web site (using compression and encryption)
rsync -auz -e ssh remote:/dir/ . && rsync -auz -e ssh . remote:/dir/Synchronize current directory with remote one
ssh (Secure SHell)
ssh $USER@$HOST commandRun command on $HOST as $USER (default command=shell)
•ssh -f -Y $USER@$HOSTNAME xeyesRun GUI command on $HOSTNAME as $USER
scp -p -r $USER@$HOST: file dir/Copy with permissions to $USER's home directory on $HOST
ssh -g -L 8080:localhost:80 root@$HOSTForward connections to $HOSTNAME:8080 out to $HOST:80
ssh -R 1434:imap:143 root@$HOSTForward connections from $HOST:1434 in to imap:143
wget (multi purpose download tool)
•(cd cli && wget -nd -pHEKk http://www.pixelbeat.org/cmdline.html)Store local browsable version of a page to the current dir
wget -c http://www.example.com/large.fileContinue downloading a partially downloaded file
wget -r -nd -np -l1 -A '*.jpg' http://www.example.com/dir/Download a set of files to the current directory
wget ftp://remote/file[1-9].iso/FTP supports globbing directly
•wget -q -O- http://www.pixelbeat.org/timeline.html | grep 'a href' | headProcess output directly
echo 'wget url' | at 01:00Download url at 1AM to current dir
wget --limit-rate=20k urlDo a low priority download (limit to 20KB/s in this case)
wget -nv --spider --force-html -i bookmarks.htmlCheck links in a file
wget --mirror http://www.example.com/Efficiently update a local copy of a site (handy from cron)
networking (Note ifconfig, route, mii-tool, nslookup commands are obsolete)
ethtool eth0Show status of ethernet interface eth0
ethtool --change eth0 autoneg off speed 100 duplex fullManually set ethernet interface speed
iwconfig eth1Show status of wireless interface eth1
iwconfig eth1 rate 1Mb/s fixedManually set wireless interface speed
•iwlist scanList wireless networks in range
•ip link showList network interfaces
ip link set dev eth0 name wanRename interface eth0 to wan
ip link set dev eth0 upBring interface eth0 up (or down)
•ip addr showList addresses for interfaces
ip addr add 1.2.3.4/24 brd + dev eth0Add (or del) ip and mask (255.255.255.0)
•ip route showList routing table
ip route add default via 1.2.3.254Set default gateway to 1.2.3.254
•tc qdisc add dev lo root handle 1:0 netem delay 20msecAdd 20ms latency to loopback device (for testing)
•tc qdisc del dev lo rootRemove latency added above
•host pixelbeat.orgLookup DNS ip address for name or vice versa
•hostname -iLookup local ip address (equivalent to host `hostname`)
•whois pixelbeat.orgLookup whois info for hostname or ip address
•netstat -tuplList internet services on a system
•netstat -tupList active connections to/from system
windows networking (Note samba is the package that provides all this windows specific networking support)
•smbtreeFind windows machines. See also findsmb
nmblookup -A 1.2.3.4Find the windows (netbios) name associated with ip address
smbclient -L windows_boxList shares on windows machine or samba server
mount -t smbfs -o fmask=666,guest //windows_box/share /mnt/shareMount a windows share
echo 'message' | smbclient -M windows_boxSend popup to windows machine (off by default in XP sp2)
text manipulation (Note sed uses stdin and stdout, so if you want to edit files, append newfile)
sed 's/string1/string2/g'Replace string1 with string2
sed 's/\(.*\)1/\12/g'Modify anystring1 to anystring2
sed '/ *#/d; /^ *$/d'Remove comments and blank lines
sed ':a; /\\$/N; s/\\\n//; ta'Concatenate lines with trailing \
sed 's/[ \t]*$//'Remove trailing spaces from lines
sed 's/\([\\`\\"$\\\\]\)/\\\1/g'Escape shell metacharacters active within double quotes
•seq 10 | sed "s/^/ /; s/ *\(.\{7,\}\)/\1/"Right align numbers
sed -n '1000p;1000q'Print 1000th line
sed -n '10,20p;20q'Print lines 10 to 20
sed -n 's/.*\(.*\)<\/title>.*/\1/ip;<acronym title="quit after match">T;q</acronym>'</td><td>Extract title from HTML web page</td></tr> <tr><td> </td><td class="nw">sort -t. -k1,1n -k2,2n -k3,3n -k4,4n</td><td>Sort IPV4 ip addresses</td></tr> <tr><td>•</td><td class="nw">echo 'Test' | tr '[:lower:]' '[:upper:]'</td><td>Case conversion</td></tr> <tr><td>•</td><td class="nw">tr -dc '[:print:]' < /dev/urandom</td><td>Filter non printable characters</td></tr> <tr><td>•</td><td class="nw">history | wc -l</td><td>Count lines</td></tr> <tr id="sets" class="pbtitle"><td colspan="3"><b>set operations</b> (Note you can <a href="http://www.pixelbeat.org/docs/env.html">export LANG=C</a> for speed. Also these assume no duplicate lines within a file)</td></tr> <tr><td> </td><td class="nw">sort file1 file2 | uniq</td><td><acronym title="Items in either file1 or file2">Union</acronym> of unsorted files</td></tr> <tr><td> </td><td class="nw">sort file1 file2 | uniq -d</td><td><acronym title="Items both in file1 and file2">Intersection</acronym> of unsorted files</td></tr> <tr><td> </td><td class="nw">sort file1 file1 file2 | uniq -u</td><td><acronym title="Items in file2 not in file1">Difference</acronym> of unsorted files</td></tr> <tr><td> </td><td class="nw">sort file1 file2 | uniq -u</td><td><acronym title="Items in only one file">Symmetric Difference</acronym> of unsorted files</td></tr> <tr><td> </td><td class="nw">join -a1 -a2 file1 file2</td><td>Union of sorted files</td></tr> <tr><td> </td><td class="nw">join file1 file2</td><td>Intersection of sorted files</td></tr> <tr><td> </td><td class="nw">join -v2 file1 file2</td><td>Difference of sorted files</td></tr> <tr><td> </td><td class="nw">join -v1 -v2 file1 file2</td><td>Symmetric Difference of sorted files</td></tr> <tr id="math" class="pbtitle"><td colspan="3"><b>math</b></td></tr> <tr><td>•</td><td class="nw">echo '(1 + sqrt(5))/2' | bc -l</td><td>Quick math (Calculate φ). See also <a href="http://www.pixelbeat.org/scripts/bc">bc</a></td></tr> <tr><td>•</td><td class="nw">echo 'pad=20; min=64; (100*10^6)/((pad+min)*8)' | bc</td><td>More complex (int) e.g. This shows max FastE packet rate</td></tr> <tr><td>•</td><td class="nw">echo 'pad=20; min=64; print (100E6)/((pad+min)*8)' | python</td><td>Python handles scientific notation</td></tr> <tr><td>•</td><td class="nw">echo 'pad=20; plot [64:1518] (100*10**6)/((pad+x)*8)' | gnuplot -persist</td><td>Plot FastE packet rate vs packet size</td></tr> <tr><td>•</td><td class="nw">echo 'obase=16; ibase=10; 64206' | bc</td><td>Base conversion (decimal to hexadecimal)</td></tr> <tr><td>•</td><td class="nw">echo $((0x2dec))</td><td>Base conversion (hex to dec) ((shell arithmetic expansion))</td></tr> <tr><td>•</td><td class="nw">units -t '100m/9.74s' 'miles/hour'</td><td>Unit conversion (metric to imperial)</td></tr> <tr><td>•</td><td class="nw">units -t '500GB' 'GiB'</td><td>Unit conversion (<acronym title="powers of 10">SI</acronym> to <acronym title="powers of 2">IEC</acronym> prefixes)</td></tr> <tr><td>•</td><td class="nw">units -t '1 googol'</td><td>Definition lookup</td></tr> <tr><td>•</td><td class="nw">seq 100 | (tr '\n' +; echo 0) | bc</td><td>Add a column of numbers. See also <a href="http://www.pixelbeat.org/scripts/add">add</a> and <a href="http://www.pixelbeat.org/scripts/funcpy">funcpy</a></td></tr> <tr id="dates" class="pbtitle"><td colspan="3"><b>calendar</b></td></tr> <tr><td>•</td><td class="nw">cal -3</td><td>Display a calendar</td></tr> <tr><td>•</td><td class="nw">cal 9 1752</td><td>Display a calendar for a particular month year</td></tr> <tr><td>•</td><td class="nw">date -d fri</td><td>What date is it this friday. See also <a href="http://www.pixelbeat.org/scripts/day">day</a></td></tr> <tr><td>•</td><td class="nw">date --date='25 Dec' +%A</td><td>What day does xmas fall on, this year</td></tr> <tr><td>•</td><td class="nw">date --date '1970-01-01 UTC 2147483647 seconds'</td><td>Convert number of seconds since the epoch to a date</td></tr> <tr><td>•</td><td class="nw">TZ=':America/Los_Angeles' date</td><td>What time is it on West coast of US (use tzselect to find TZ)</td></tr> <tr><td> </td><td class="nw">echo "mail -s 'get the train' P@draigBrady.com < /dev/null" | at 17:45</td><td>Email reminder</td></tr> <tr><td>•</td><td class="nw">echo "DISPLAY=$DISPLAY xmessage cooker" | at "NOW + 30 minutes"</td><td>Popup reminder</td></tr> <tr id="locale" class="pbtitle"><td colspan="3"><b>locales</b></td></tr> <tr><td>•</td><td class="nw">printf "%'d\n" 1234</td><td>Print number with thousands grouping appropriate to locale</td></tr> <tr><td>•</td><td class="nw">BLOCK_SIZE=\'1 ls -l</td><td>get ls to do thousands grouping appropriate to locale</td></tr> <tr><td>•</td><td class="nw">echo "I live in `locale territory`"</td><td>Extract info from locale database</td></tr> <tr><td>•</td><td class="nw">LANG=en_IE.utf8 locale int_prefix</td><td>Lookup locale info for specific country. See also <a href="http://www.pixelbeat.org/scripts/ccodes">ccodes</a></td></tr> <tr><td>•</td><td class="nw">locale | cut -d= -f1 | xargs locale -kc | less</td><td>List fields available in locale database</td></tr> <tr id="recode" class="pbtitle"><td colspan="3"><b>recode</b> (Obsoletes iconv, dos2unix, unix2dos)</td></tr> <tr><td>•</td><td class="nw">recode -l | less</td><td>Show available conversions (aliases on each line)</td></tr> <tr><td> </td><td class="nw">recode windows-1252.. file_to_change.txt</td><td>Windows "ansi" to local charset (auto does CRLF conversion)</td></tr> <tr><td> </td><td class="nw">recode utf-8/CRLF.. file_to_change.txt</td><td>Windows utf8 to local charset</td></tr> <tr><td> </td><td class="nw">recode iso-8859-15..utf8 file_to_change.txt</td><td>Latin9 (western europe) to utf8</td></tr> <tr><td> </td><td class="nw">recode ../b64 <> file.b64</td><td>Base64 encode</td></tr> <tr><td> </td><td class="nw">recode /qp.. <> file.qp</td><td>Quoted printable decode</td></tr> <tr><td> </td><td class="nw">recode ..HTML <> file.html</td><td>Text to HTML</td></tr> <tr><td>•</td><td class="nw">recode -lf windows-1252 | grep euro</td><td>Lookup <a href="http://www.pixelbeat.org/docs/utf8.html">table of characters</a></td></tr> <tr><td>•</td><td class="nw">echo -n 0x80 | recode latin-9/x1..dump</td><td>Show what a code represents in latin-9 charmap</td></tr> <tr><td>•</td><td class="nw">echo -n 0x20AC | recode ucs-2/x2..latin-9/x</td><td>Show latin-9 encoding</td></tr> <tr><td>•</td><td class="nw">echo -n 0x20AC | recode ucs-2/x2..utf-8/x</td><td>Show utf-8 encoding</td></tr> <tr id="CDs" class="pbtitle"><td colspan="3"><b><acronym title="Compact Disks">CDs</acronym></b></td></tr> <tr><td> </td><td class="nw">gzip < /dev/cdrom > cdrom.iso.gz</td><td>Save copy of data cdrom</td></tr> <tr><td> </td><td class="nw">mkisofs -V LABEL -r dir | gzip > cdrom.iso.gz</td><td>Create cdrom image from contents of dir</td></tr> <tr><td> </td><td class="nw">mount -o loop cdrom.iso /mnt/dir</td><td>Mount the cdrom image at /mnt/dir (read only)</td></tr> <tr><td> </td><td class="nw">cdrecord -v dev=/dev/cdrom blank=fast</td><td>Clear a CDRW</td></tr> <tr><td> </td><td class="nw">gzip -dc cdrom.iso.gz | cdrecord -v dev=/dev/cdrom -</td><td>Burn cdrom image (use dev=ATAPI -scanbus to confirm dev)</td></tr> <tr><td> </td><td class="nw">cdparanoia -B</td><td>Rip audio tracks from CD to wav files in current dir</td></tr> <tr><td> </td><td class="nw">cdrecord -v dev=/dev/cdrom -audio *.wav</td><td>Make audio CD from all wavs in current dir (see also cdrdao)</td></tr> <tr><td> </td><td class="nw">oggenc --tracknum='track' track.cdda.wav -o 'track.ogg'</td><td>Make ogg file from wav file</td></tr> <tr id="disk_space" class="pbtitle"><td colspan="3"><b>disk space</b> (See also <a href="http://www.pixelbeat.org/fslint/">FSlint</a>)</td></tr> <tr><td>•</td><td class="nw">ls -lSr</td><td>Show files by size, biggest last</td></tr> <tr><td>•</td><td class="nw">du -s * | sort -k1,1rn | head</td><td>Show top disk users in current dir. See also <a href="http://www.pixelbeat.org/scripts/dutop">dutop</a></td></tr> <tr><td>•</td><td class="nw">df -h</td><td>Show free space on mounted filesystems</td></tr> <tr><td>•</td><td class="nw">df -i</td><td>Show free inodes on mounted filesystems</td></tr> <tr><td>•</td><td class="nw"><acronym title="usually in /sbin/">fdisk</acronym> -l</td><td>Show disks partitions sizes and types (run as root)</td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/docs/packaging.html">rpm</a> -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n</td><td>List all <a href="http://www.pixelbeat.org/docs/packaging.html">packages</a> by installed size (Bytes) on rpm distros</td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/docs/packaging.html">dpkg</a>-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n</td><td>List all <a href="http://www.pixelbeat.org/docs/packaging.html">packages</a> by installed size (KBytes) on deb distros</td></tr> <tr><td>•</td><td class="nw">dd bs=1 seek=2TB if=/dev/null of=ext3.test</td><td>Create a large test file (taking no space). See also <a href="http://www.pixelbeat.org/scripts/truncate">truncate</a></td></tr> <tr id="monitor" class="pbtitle"><td colspan="3"><b>monitoring/debugging</b></td></tr> <tr><td>•</td><td class="nw">tail -f /var/log/messages</td><td><a href="http://www.pixelbeat.org/docs/web/access_log/monitoring.html">Monitor messages</a> in a log file</td></tr> <tr><td>•</td><td class="nw">strace -c ls >/dev/null</td><td>Summarise/profile system calls made by command</td></tr> <tr><td>•</td><td class="nw">strace -f -e open ls >/dev/null</td><td>List system calls made by command</td></tr> <tr><td>•</td><td class="nw">ltrace -f -e getenv ls >/dev/null</td><td>List library calls made by command</td></tr> <tr><td>•</td><td class="nw"><acronym title="usually in /usr/sbin/">lsof</acronym> -p <acronym title="process id of current shell">$$</acronym></td><td>List paths that process id has open</td></tr> <tr><td>•</td><td class="nw">lsof ~</td><td>List processes that have specified path open</td></tr> <tr><td>•</td><td class="nw">tcpdump not port 22</td><td>Show network traffic except ssh. See also <a href="http://www.pixelbeat.org/scripts/tcpdump_not_me">tcpdump_not_me</a></td></tr> <tr><td>•</td><td class="nw">ps -e -o pid,args --forest</td><td>List processes in a hierarchy</td></tr> <tr><td>•</td><td class="nw">ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed '/^ 0.0 /d'</td><td>List processes by % cpu usage</td></tr> <tr><td>•</td><td class="nw">ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS</td><td>List processes by mem usage. See also <a href="http://www.pixelbeat.org/scripts/ps_mem.py">ps_mem.py</a></td></tr> <tr><td>•</td><td class="nw">ps -C firefox-bin -L -o pid,tid,pcpu,state</td><td>List all threads for a particular process</td></tr> <tr><td>•</td><td class="nw">ps -p 1,2</td><td>List info for particular process IDs</td></tr> <tr><td>•</td><td class="nw">last reboot</td><td>Show system reboot history</td></tr> <tr><td>•</td><td class="nw">free -m</td><td>Show amount of (remaining) RAM (-m displays in MB)</td></tr> <tr><td>•</td><td class="nw">watch -n1 'cat /proc/interrupts'</td><td>Watch changeable data continuously</td></tr> <tr id="sysinfo" class="pbtitle"><td colspan="3"><b>system information</b> (see also <a href="http://www.pixelbeat.org/scripts/sysinfo">sysinfo</a>) ('#' means root access is required)</td></tr> <tr><td>•</td><td class="nw">uname -a</td><td>Show kernel version and system architecture</td></tr> <tr><td>•</td><td class="nw">head -n1 /etc/issue</td><td>Show name and version of distribution</td></tr> <tr><td>•</td><td class="nw">cat /proc/partitions</td><td>Show all partitions registered on the system</td></tr> <tr><td>•</td><td class="nw">grep MemTotal /proc/meminfo</td><td>Show RAM total seen by the system</td></tr> <tr><td>•</td><td class="nw">grep "model name" /proc/cpuinfo</td><td>Show CPU(s) info</td></tr> <tr><td>•</td><td class="nw"><acronym title="usually in /sbin/">lspci</acronym> -tv</td><td>Show PCI info</td></tr> <tr><td>•</td><td class="nw"><acronym title="usually in /sbin/">lsusb</acronym> -tv</td><td>Show USB info</td></tr> <tr><td>•</td><td class="nw">mount | column -t</td><td>List mounted filesystems on the system (and align output)</td></tr> <tr><td>#</td><td class="nw">dmidecode -q | less</td><td>Display SMBIOS/DMI information</td></tr> <tr><td>#</td><td class="nw">smartctl -A /dev/sda | grep Power_On_Hours</td><td>How long has this disk (system) been powered on in total</td></tr> <tr><td>#</td><td class="nw">hdparm -i /dev/sda</td><td>Show info about disk sda</td></tr> <tr><td>#</td><td class="nw">hdparm -tT /dev/sda</td><td>Do a read speed test on disk sda</td></tr> <tr><td>#</td><td class="nw">badblocks -s /dev/sda</td><td>Test for unreadable blocks on disk sda</td></tr> <tr id="interactive" class="pbtitle"><td colspan="3"><b>interactive</b> (see also <a href="http://www.pixelbeat.org/lkdb/">linux keyboard shortcuts)</a></td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/lkdb/readline.html">readline</a></td><td>Line editor used by bash, python, bc, gnuplot, ...</td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/lkdb/screen.html">screen</a></td><td>Virtual terminals with detach capability, ...</td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/lkdb/mc.html">mc</a></td><td>Powerful file manager that can browse rpm, tar, ftp, ssh, ...</td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/docs/web/access_log/analyzing.html">gnuplot</a></td><td>Interactive/scriptable graphing</td></tr> <tr><td>•</td><td class="nw">links</td><td>Web browser</td></tr> <tr id="misc" class="pbtitle"><td colspan="3"><b>miscellaneous</b></td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/settings/.bashrc">alias</a> hd='od -Ax -tx1z -v'</td><td>Handy hexdump. (usage e.g.: • hd /proc/self/cmdline | less)</td></tr> <tr><td>•</td><td class="nw"><a href="http://www.pixelbeat.org/settings/.bashrc">alias</a> realpath='readlink -f'</td><td>Canonicalize path. (usage e.g.: • realpath ~/../$USER)</td></tr> <tr><td>•</td><td class="nw">set | grep $USER</td><td>Search current <a href="http://www.pixelbeat.org/docs/env.html">environment</a></td></tr> <tr><td> </td><td class="nw">touch -c -t 0304050607 file</td><td>Set file timestamp (YYMMDDhhmm)</td></tr></tbody></table> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Prashanth</span> </span> </span> <span class='post-timestamp'> at <meta content='http://prashuch.blogspot.com/2008/03/linux-cli-commands.html' itemprop='url'/> <a class='timestamp-link' href='https://prashuch.blogspot.com/2008/03/linux-cli-commands.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2008-03-19T15:00:00+05:30'>3/19/2008 03:00:00 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://www.blogger.com/comment/fullpage/post/36017496/8431778842716567771' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/36017496/8431778842716567771' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1323347076'> <a href='https://www.blogger.com/post-edit.g?blogID=36017496&postID=8431778842716567771&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> Labels: <a href='https://prashuch.blogspot.com/search/label/Linux' rel='tag'>Linux</a> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='36017496' itemprop='blogId'/> <meta content='2049593251552980130' itemprop='postId'/> <a name='2049593251552980130'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='https://prashuch.blogspot.com/2008/03/waitpid.html'>waitpid()</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-2049593251552980130' itemprop='description articleBody'> <pre><span style="font-size:130%;"><span style="font-weight: bold;">waitpid </span></span>- wait for process termination<br /><br /><br /><span style="font-size:130%;"><span style="font-weight: bold;">Headers:</span></span><br /><strong style="font-weight: normal;">#include</strong> <strong style="font-weight: normal;"><sys/types.h></strong><br /><strong style="font-weight: normal;">#include</strong> <strong style="font-weight: normal;"><sys/wait.h><br /><br /></strong></pre><h2><span style="font-size:130%;">DESCRIPTION</span></h2><pre>The <strong>waitpid</strong> function suspends execution of the current<br /> process until a child as specified by the <em>pid</em> argument has<br /> exited, or until a signal is delivered whose action is to<br /> terminate the current process or to call a signal handling<br /> function. If a child as requested by <em>pid</em> has already<br /> exited by the time of the call (a so-called "zombie" pro-<br /> cess), the function returns immediately. Any system<br /> resources used by the child are freed.<br /><br /><br /> The value of <em>pid</em> can be one of:<br /><br /> < -1 which means to wait for any child process whose<br /> process group ID is equal to the absolute value of<br /><br /> -1 which means to wait for any child process; this is<br /> the same behaviour which <strong>wait</strong> exhibits.<br /><br /> 0 which means to wait for any child process whose<br /> process group ID is equal to that of the calling<br /> process.<br /><br /> > 0 which means to wait for the child whose process ID<br /> is equal to the value of <em>pid</em>.<br /><br /><br /><br /> The value of <em>options</em> is an exclusive OR of zero or more of<br /> the following constants:<br /><br /> <strong>WNOHANG</strong> which means to return immediately if no child has<br /> exited.<br /><br /><br /> <strong>WUNTRACED</strong><br /> which means to also return for children which are<br /><br /><br /> If <em>status</em> is not <strong>NULL</strong>, <strong>wait</strong> or <strong>waitpid</strong> store status infor-<br /> mation in the location pointed to by <em>statloc</em>.<br /><br /> This status can be evaluated with the following macros<br /> (these macros take the stat buffer as an argument -- not a<br /> pointer to the buffer!):<br /><br /> <strong>WIFEXITED(</strong><em>status</em><strong>)</strong><br /> is non -zero if the child exited normally.<br /><br /> <strong>WEXITSTATUS(</strong><em>status</em><strong>)</strong><br /> evaluates to the least significant eight bits of<br /> the return code of the child which terminated,<br /> which may have been set as the argument to a call<br /> to <strong>exit()</strong> or as the argument for a <strong>return</strong> state-<br /> ment in the main program. This macro can only be<br /> evaluated if <strong>WIFEXITED</strong> returned non-zero.<br /><br /> <strong>WIFSIGNALED(</strong><em>status</em><strong>)</strong><br /> returns true if the child process exited because<br /> of a signal which was not caught.<br /><br /> <strong>WTERMSIG(</strong><em>status</em><strong>)</strong><br /> returns the number of the signal that caused the<br /> child process to terminate. This macro can only be<br /> evaluated if <strong>WIFSIGNALED</strong> returned non-zero.<br /><br /> <strong>WIFSTOPPED(</strong><em>status</em><strong>)</strong><br /> returns true if the child process which caused the<br /> return is currently stopped; this is only possible<br /> if the call was done using <strong>WUNTRACED</strong>.<br /><br /> <strong>WSTOPSIG(</strong><em>status</em><strong>)</strong><br /> returns the number of the signal which caused the<br /> child to stop. This macro can only be evaluated<br /><br /> if <strong>WIFSTOPPED</strong> returned non-zero.<br /><br /> stopped, and whose status has not been reported.<br /><br /></pre> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Prashanth</span> </span> </span> <span class='post-timestamp'> at <meta content='http://prashuch.blogspot.com/2008/03/waitpid.html' itemprop='url'/> <a class='timestamp-link' href='https://prashuch.blogspot.com/2008/03/waitpid.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2008-03-19T10:25:00+05:30'>3/19/2008 10:25:00 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://www.blogger.com/comment/fullpage/post/36017496/2049593251552980130' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/36017496/2049593251552980130' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1323347076'> <a href='https://www.blogger.com/post-edit.g?blogID=36017496&postID=2049593251552980130&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> Labels: <a href='https://prashuch.blogspot.com/search/label/C%20and%20C%2B%2B' rel='tag'>C and C++</a>, <a href='https://prashuch.blogspot.com/search/label/Linux' rel='tag'>Linux</a>, <a href='https://prashuch.blogspot.com/search/label/Solaries' rel='tag'>Solaries</a>, <a href='https://prashuch.blogspot.com/search/label/Unix' rel='tag'>Unix</a> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='36017496' itemprop='blogId'/> <meta content='7461653893658784355' itemprop='postId'/> <a name='7461653893658784355'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='https://prashuch.blogspot.com/2008/03/signal-management-1-in-linux.html'>signal management 1 in linux/+</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-7461653893658784355' itemprop='description articleBody'> <code><tt>#include <<a href="http://www.opengroup.org/onlinepubs/000095399/basedefs/signal.h.html">signal.h</a>><br /><br /> int <span style="font-weight: bold;">sighold</span>(int</tt> <i>sig</i><tt>);<br /> int <span style="font-weight: bold;">sigignore</span>(int</tt> <i>sig</i><tt>);<br /> int <span style="font-weight: bold;">sigpause</span>(int</tt> <i>sig</i><tt>);<br /> int <span style="font-weight: bold;">sigrelse</span>(int</tt> <i>sig</i><tt>);<br /> void (*sigset(int</tt> <i>sig</i><tt>, void (*</tt><i>disp</i><tt>)(int)))(int);<br /><br /><span style="font-weight: bold;">Description :</span><br /></tt></code><p>The <i>sighold</i>(), <i>sigignore</i>(), <i>sigpause</i>(), <i>sigrelse</i>(), and <i>sigset</i>() functions provide simplified signal management.</p> <p>The <i>sigset</i>() function shall modify signal dispositions. The <i>sig</i> argument specifies the signal, which may be any signal except SIGKILL and SIGSTOP. The <i>disp</i> argument specifies the signal's disposition, which may be SIG_DFL, SIG_IGN, or the address of a signal handler. If <i>sigset</i>() is used, and <i>disp</i> is the address of a signal handler, the system shall add <i>sig</i> to the calling process' signal mask before executing the signal handler; when the signal handler returns, the system shall restore the calling process' signal mask to its state prior to the delivery of the signal. In addition, if <i>sigset</i>() is used, and <i>disp</i> is equal to SIG_HOLD, <i>sig</i> shall be added to the calling process' signal mask and <i>sig</i>'s disposition shall remain unchanged. If <i>sigset</i>() is used, and <i>disp</i> is not equal to SIG_HOLD, <i>sig</i> shall be removed from the calling process' signal mask.</p> <p>The <i>sighold</i>() function shall add <i>sig</i> to the calling process' signal mask.</p> <p>The <i>sigrelse</i>() function shall remove <i>sig</i> from the calling process' signal mask.</p> <p>The <i>sigignore</i>() function shall set the disposition of <i>sig</i> to SIG_IGN.</p> <p>The <i>sigpause</i>() function shall remove <i>sig</i> from the calling process' signal mask and suspend the calling process until a signal is received. The <i>sigpause</i>() function shall restore the process' signal mask to its original state before returning.</p> <p>If the action for the SIGCHLD signal is set to SIG_IGN, child processes of the calling processes shall not be transformed into zombie processes when they terminate. If the calling process subsequently waits for its children, and the process has no unwaited-for children that were transformed into zombie processes, it shall block until all of its children terminate, and <a href="http://www.opengroup.org/onlinepubs/000095399/functions/wait.html"><i>wait</i>()</a>, <a href="http://www.opengroup.org/onlinepubs/000095399/functions/waitid.html"><i>waitid</i>()</a>, and <a href="http://www.opengroup.org/onlinepubs/000095399/functions/waitpid.html"><i>waitpid</i>()</a> shall fail and set <i>errno</i> to [ECHILD].</p><h4>RETURN VALUE</h4>pon successful completion, <i>sigset</i>() shall return SIG_HOLD if the signal had been blocked and the signal's previous disposition if it had not been blocked. Otherwise, SIG_ERR shall be returned and <i>errno</i> set to indicate the error. <p>The <i>sigpause</i>() function shall suspend execution of the thread until a signal is received, whereupon it shall return -1 and set <i>errno</i> to [EINTR].</p> <p>For all other functions, upon successful completion, 0 shall be returned. Otherwise, -1 shall be returned and <i>errno</i> set to indicate the error.</p><p style="font-weight: bold;">FAILING CONDITIONS :</p><p>These functions shall fail if:</p><ul><li>The <i>sig</i> argument is an illegal signal number.</li><li>An attempt is made to catch a signal that cannot be caught, or to ignore a signal that cannot be ignored.</li></ul> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Prashanth</span> </span> </span> <span class='post-timestamp'> at <meta content='http://prashuch.blogspot.com/2008/03/signal-management-1-in-linux.html' itemprop='url'/> <a class='timestamp-link' href='https://prashuch.blogspot.com/2008/03/signal-management-1-in-linux.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2008-03-19T10:04:00+05:30'>3/19/2008 10:04:00 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://www.blogger.com/comment/fullpage/post/36017496/7461653893658784355' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/36017496/7461653893658784355' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1323347076'> <a href='https://www.blogger.com/post-edit.g?blogID=36017496&postID=7461653893658784355&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> Labels: <a href='https://prashuch.blogspot.com/search/label/C%20and%20C%2B%2B' rel='tag'>C and C++</a>, <a href='https://prashuch.blogspot.com/search/label/Linux' rel='tag'>Linux</a>, <a href='https://prashuch.blogspot.com/search/label/Solaries' rel='tag'>Solaries</a>, <a href='https://prashuch.blogspot.com/search/label/Unix' rel='tag'>Unix</a> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='36017496' itemprop='blogId'/> <meta content='2070666832181236878' itemprop='postId'/> <a name='2070666832181236878'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='https://prashuch.blogspot.com/2008/03/xtem-syntax.html'>Xtem Syntax</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-2070666832181236878' itemprop='description articleBody'> <span style="font-weight: bold;">About xterm</span> <p>Terminal emulator for<b><a href="http://www.computerhope.com/unix/ux.htm"> X</a></b>-windows Terminal<br /></p> <p class="nb"><a name="02"></a>Syntax</p> <p><i>xterm [-toolkitoption ...] [-option]</i></p> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td valign="top" width="120">-help</td> <td valign="top">This causes xterm to print out a verbose message describing its options.</td> </tr> <tr> <td valign="top" width="120">-132</td> <td valign="top">Normally, the VT102 DECCOLM escape sequence that switches between 80 and 132 column mode is ignored. This option causes the DECCOLM escape sequence to be recognized, and the xterm window will resize appropriately.</td> </tr> <tr> <td valign="top" width="120">-ah</td> <td valign="top">This option indicates that xterm should always highlight the text cursor. By default, xterm will display a hollow text cursor whenever the focus is lost or the pointer leaves the window.</td> </tr> <tr> <td valign="top" width="120">+ah</td> <td valign="top">This option indicates that xterm should do text cursor highlighting based on focus.</td> </tr> <tr> <td valign="top" width="120">-b number</td> <td valign="top">This option specifies the size of the inner border (the distance between the outer edge of the characters and the window border) in pixels. The default is 2.</td> </tr> <tr> <td valign="top" width="120">-cb</td> <td valign="top">Set the vt100 resource cutToBeginningOfLine to FALSE.</td> </tr> <tr> <td valign="top" width="120">+cb</td> <td valign="top">Set the vt100 resource cutToBeginningOfLine to TRUE.</td> </tr> <tr> <td valign="top" width="120">-cc</td> <td valign="top">This sets classes indicated by the given ranges for using in selecting by words. See the section specifying character classes.</td> </tr> <tr> <td valign="top" width="120">-cn</td> <td valign="top">This option indicates that newlines should not be cut in line-mode selections.</td> </tr> <tr> <td valign="top" width="120">+cn</td> <td valign="top">This option indicates that newlines should be cut in line-mode selections.</td> </tr> <tr> <td valign="top" width="120">-cr color</td> <td valign="top">This option specifies the color to use for text cursor. The default is to use the same foreground color that is used for text.</td> </tr> <tr> <td valign="top" width="120">-cu</td> <td valign="top">This option indicates that xterm should work around a bug in the <b><a href="http://www.computerhope.com/unix/umore.htm">more</a></b> program that causes it to incorrectly display lines that are exactly the width of the window and are followed by a line beginning with a tab (the leading tabs are not displayed). This option is so named because it was originally thought to be a bug in the curses(3x) cursor motion package.</td> </tr> <tr> <td valign="top" width="120">+cu</td> <td valign="top">This option indicates that xterm should not work around the more(3x) bug mentioned above.</td> </tr> <tr> <td valign="top" width="120">-e program [arguments]</td> <td valign="top">This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line. This must be<br /> the last option on the command line.</td> </tr> <tr> <td valign="top" width="120">-fb font</td> <td valign="top">This option specifies a font to be used when displaying bold text. This font must be the same height and width as the normal font. If only one of the normal or bold fonts is specified, it will be used as the normal font and the bold font will be produced by overstriking this font. The default is to do overstriking of the normal font.</td> </tr> <tr> <td valign="top" width="120">-im</td> <td valign="top">Turn on the useInsertMode resource.</td> </tr> <tr> <td valign="top" width="120">+im</td> <td valign="top">Turn off the useInsertMode resource.</td> </tr> <tr> <td valign="top" width="120">-j</td> <td valign="top">This option indicates that xterm should do jump scrolling. Normally, text is scrolled one line at a time; this option allows xterm to move multiple lines at a time so that it doesn't fall as far behind. Its use is strongly recommended since it make xterm much faster when scanning through large amounts of text. The VT100 escape sequences for enabling and disabling smooth scroll as well as the ``VT Options'' menu can be used to turn this feature on or off.</td> </tr> <tr> <td valign="top" width="120">+j</td> <td valign="top">This option indicates that xterm should not do jump scrolling.</td> </tr> <tr> <td valign="top" width="120">-ls</td> <td valign="top">This option indicates that the shell that is started in the xterm window will be a login shell<br />(i.e., the first character of argv[0] will be a dash, indicating to the shell that it should read<br /> the user's .login or .profile).</td> </tr> <tr> <td valign="top" width="120">+ls</td> <td valign="top">This option indicates that the shell that is started should not be a login shell (i.e. it will be a normal ``subshell'').</td> </tr> <tr> <td valign="top" width="120">-mb</td> <td valign="top">This option indicates that xterm should ring a margin bell when the user types near the right end of a line. This option can be turned on and off from the ``VT Options'' menu.</td> </tr> <tr> <td valign="top" width="120">+mb</td> <td valign="top">This option indicates that margin bell should not be rung.</td> </tr> <tr> <td valign="top" width="120">-mc milliseconds</td> <td valign="top">This option specifies the maximum time between multi-click selections.</td> </tr> <tr> <td valign="top" width="120">-ms color</td> <td valign="top">This option specifies the color to be used for the pointer cursor. The default is to use the foreground color.</td> </tr> <tr> <td valign="top" width="120">-nb number</td> <td valign="top">This option specifies the number of characters from the right end of a line at which the margin bell, if enabled, will ring. The default is 10.</td> </tr> <tr> <td valign="top" width="120">-rw</td> <td valign="top">This option indicates that reverse-wraparound should be allowed. This allows the cursor to backup from the leftmost column of one line to the rightmost column of the previous line. This is very useful for editing long shell command lines and is encouraged. This option can be turned on and off from the ``VT Options'' menu.</td> </tr> <tr> <td valign="top" width="120">+rw</td> <td valign="top">This option indicates that reverse-wraparound should not be allowed.</td> </tr> <tr> <td valign="top" width="120">-aw</td> <td valign="top">This option indicates that auto-wraparound should be allowed. This allows the cursor to automatically wrap to the beginning of the next line when when it is at the rightmost position of a line and text is output.</td> </tr> <tr> <td valign="top" width="120">+aw</td> <td valign="top">This option indicates that auto-wraparound should not be allowed.</td> </tr> <tr> <td valign="top" width="120">-s</td> <td valign="top">This option indicates that xterm may scroll asynchronously, meaning that the screen does not have to be kept completely up to date while scrolling. This allows xterm to run faster when network latencies are very high and is typically useful when running across a very large Internet or many gateways.</td> </tr> <tr> <td valign="top" width="120">+s</td> <td valign="top">This option indicates that xterm should scroll synchronously.</td> </tr> <tr> <td valign="top" width="120">-sb</td> <td valign="top">This option indicates that some number of lines that are scrolled off the top of the window should be saved and that a scrollbar should be displayed so that those lines can be viewed. This option may be turned on and off from the ``VT Options'' menu.</td> </tr> <tr> <td valign="top" width="120">+sb</td> <td valign="top">This option indicates that a scrollbar should not be displayed.</td> </tr> <tr> <td valign="top" width="120">-sf</td> <td valign="top">This option indicates that Sun Function Key escape codes should be generated for function keys.</td> </tr> <tr> <td valign="top" width="120">+sf</td> <td valign="top">This option indicates that the standard escape codes should be generated for function keys.</td> </tr> <tr> <td valign="top" width="120">-si</td> <td valign="top">This option indicates that output to a window should not automatically reposition the screen to the bottom of the scrolling region. This option can be turned on and off from the ``VT Options'' menu.</td> </tr> <tr> <td valign="top" width="120">+si</td> <td valign="top">This option indicates that output to a window should cause it to scroll to the bottom.</td> </tr> <tr> <td valign="top" width="120">-sk</td> <td valign="top">This option indicates that pressing a key while using the scrollbar to review previous lines of text should cause the window to be repositioned automatically in the normal position at the bottom of the scroll region.</td> </tr> <tr> <td valign="top" width="120">+sk</td> <td valign="top">This option indicates that pressing a key while using the scrollbar should not cause the window to be repositioned.</td> </tr> <tr> <td valign="top" width="120">-sl number</td> <td valign="top">This option specifies the number of lines to save that have been scrolled off the top of the screen. The default is 64.</td> </tr> <tr> <td valign="top" width="120">-t</td> <td valign="top">This option indicates that xterm should start in Tektronix mode, rather than in VT102 mode. Switching between the two windows is done using the ``Options'' menus.</td> </tr> <tr> <td valign="top" width="120">+t</td> <td valign="top">This option indicates that xterm should start in VT102 mode.</td> </tr> <tr> <td valign="top" width="120">-tm string</td> <td valign="top">This option specifies a series of terminal setting keywords followed by the characters that should be bound to those functions, similar to the stty program. Allowable keywords include: intr, quit, erase, kill, eof, eol, swtch, start, stop, brk, susp, dsusp, rprnt, flush, weras, and lnext. Cotrol characters may be specified as ^char (e.g. ^c or ^u) and ^? may be used to indicate delete.</td> </tr> <tr> <td valign="top" width="120">-tn name</td> <td valign="top">This option specifies the name of the terminal type to be set in the TERM environment variable. This terminal type must exist in the termcap database and should have li# and co# entries.</td> </tr> <tr> <td valign="top" width="120">-ut</td> <td valign="top">This option indicates that xterm shouldn't write a record into the the system log file /etc/utmp.</td> </tr> <tr> <td valign="top" width="120">+ut</td> <td valign="top">This option indicates that xterm should write a record into the system log file /etc/utmp.</td> </tr> <tr> <td valign="top" width="120">-vb</td> <td valign="top">This option indicates that a visual bell is preferred over an audible one. Instead of ringing the terminal bell whenever a Control-G is received, the window will be flashed.</td> </tr> <tr> <td valign="top" width="120">+vb</td> <td valign="top">This option indicates that a visual bell should not be used.</td> </tr> <tr> <td valign="top" width="120">-wf</td> <td valign="top">This option indicates that xterm should wait for the window to be mapped the first time before starting the subprocess so that the initial terminal size settings and environment variables are correct. It is the application's responsibility to catch subsequent terminal size changes.</td> </tr> <tr> <td valign="top" width="120">+wf</td> <td valign="top">This option indicates that xterm show not wait before starting the subprocess.</td> </tr> <tr> <td valign="top" width="120">-C</td> <td valign="top">This option indicates that this window should receive console output. This is not supported on all systems. To obtain console output, you must be the owner of the console device, and you must have read and write permission for it. If you are running X under xdm on the console screen you may need to have the session startup and reset programs explicitly change the ownership of the console device in order to get this option to work.</td> </tr> <tr> <td valign="top" width="120">Sccn</td> <td valign="top">This option specifies the last two letters of the name of a pseudoterminal to use in slave mode, plus the number of the inherited file descriptor. The option is parsed ``%c%c%d''. This allows xterm to be used as an input and output channel for an existing program and is sometimes used in specialized applications.</td> </tr> <tr> <td valign="top" width="120">%geom</td> <td valign="top">This option specifies the preferred size and position of the Tektronix window. It is shorthand for specifying the ``*tekGeometry'' resource.</td> </tr> <tr> <td valign="top" width="120">#geom</td> <td valign="top">This option specifies the preferred position of the icon window. It is shorthand for specifying the ``*iconGeometry'' resource.</td> </tr> <tr> <td valign="top" width="120">-T string</td> <td valign="top">This option specifies the title for xterm's windows. It is equivalent to -title.</td> </tr> <tr> <td valign="top" width="120">-n string</td> <td valign="top">This option specifies the icon name for xterm's windows. It is shorthand for specifying the ``*icon- Name'' resource. Note that this is not the same as the toolkit option -name (see below). The default icon name is the application name.</td> </tr> <tr> <td valign="top" width="120">-r </td> <td valign="top">This option indicates that reverse video should be simulated by swapping the foreground and background colors. It is equivalent to -rv.</td> </tr> <tr> <td valign="top" width="120">-w number</td> <td valign="top">This option specifies the width in pixels of the border surrounding the window. It is equivalent to -borderwidth or -bw.</td> </tr> <tr> <td valign="top" width="120">-bg color</td> <td valign="top">This option specifies the color to use for the background of the window. The default is ``white.''</td> </tr> <tr> <td valign="top" width="120">-bd color</td> <td valign="top">This option specifies the color to use for the border of the window. The default is ``black.''</td> </tr> <tr> <td valign="top" width="120">-bw color</td> <td valign="top">This option specifies the width in pixels of the border surrounding the window.</td> </tr> <tr> <td valign="top" width="120">-fg color</td> <td valign="top">This option specifies the color to use for displaying text. The default is ``black.''</td> </tr> <tr> <td valign="top" width="120">-fn color</td> <td valign="top">This option specifies the font to be used for displaying normal text. The default is fixed.</td> </tr> <tr> <td valign="top" width="120">-fn font</td> <td valign="top">This option specifies the font to be used for displaying normal text. The default is fixed.</td> </tr> <tr> <td valign="top" width="120">-name name</td> <td valign="top">This option specifies the application name under which resources are to be obtained, rather than the default executable file name. Name should not contain ``.'' or ``*'' characters.</td> </tr> <tr> <td valign="top" width="120">-title string</td> <td valign="top">This option specifies the window title string, which may be displayed by window managers if the user so chooses. The default title is the command line specified after the -e option, if any, otherwise the application name.</td> </tr> <tr> <td valign="top" width="120">-rv</td> <td valign="top">This option indicates that reverse video should be simulated by swapping the foreground and background colors.</td> </tr> <tr> <td valign="top" width="120">-geometry geometry</td> <td valign="top">This option specifies the preferred size and position of the VT102 window; see X(1).</td> </tr> <tr> <td valign="top" width="120">-display display</td> <td valign="top">This option specifies the X server to contact; see <b><a href="http://www.computerhope.com/unix/ux.htm">X</a></b>.</td> </tr> <tr> <td valign="top" width="120">-xrm resourcestring</td> <td valign="top">This option specifies a resource string to be used. This is especially useful for setting resources that do not have separate command line options.</td> </tr> <tr> <td valign="top" width="120">-iconic</td> <td valign="top">This option indicates that xterm should ask the window manager to start it as an icon rather than as the normal window.</td> </tr> <tr> <td valign="top" width="120">-dc</td> <td valign="top">This option disables the escape sequence to change the vt100 foreground and background colors, the text cursor color, the mouse cursor foreground and background colors and the Tektronix emulator foreground and background colors.</td> </tr> <tr> <td valign="top" width="120">+dc</td> <td valign="top">This option enables the escape sequence to change the vt100 foreground and background colors, the text cursor color, the mouse cursor foreground and background colors and the Tektronix emulator foreground and background</td> </tr> </tbody></table> <p class="nb"><a name="03"></a>Examples</p> <p><b>xterm</b> - runs the X terminal (if supported).</p> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Prashanth</span> </span> </span> <span class='post-timestamp'> at <meta content='http://prashuch.blogspot.com/2008/03/xtem-syntax.html' itemprop='url'/> <a class='timestamp-link' href='https://prashuch.blogspot.com/2008/03/xtem-syntax.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2008-03-19T09:00:00+05:30'>3/19/2008 09:00:00 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://www.blogger.com/comment/fullpage/post/36017496/2070666832181236878' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/36017496/2070666832181236878' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1323347076'> <a href='https://www.blogger.com/post-edit.g?blogID=36017496&postID=2070666832181236878&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> Labels: <a href='https://prashuch.blogspot.com/search/label/Linux' rel='tag'>Linux</a>, <a href='https://prashuch.blogspot.com/search/label/Solaries' rel='tag'>Solaries</a>, <a href='https://prashuch.blogspot.com/search/label/Unix' rel='tag'>Unix</a> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> </div> <div class='blog-pager' id='blog-pager'> <span id='blog-pager-older-link'> <a class='blog-pager-older-link' href='https://prashuch.blogspot.com/search/label/Linux?updated-max=2008-03-19T09:00:00%2B05:30&max-results=20&start=11&by-date=false' id='Blog1_blog-pager-older-link' title='Older Posts'>Older Posts</a> </span> <a class='home-link' href='https://prashuch.blogspot.com/'>Home</a> </div> <div class='clear'></div> <div class='blog-feeds'> <div class='feed-links'> Subscribe to: <a class='feed-link' href='https://prashuch.blogspot.com/feeds/posts/default' target='_blank' type='application/atom+xml'>Posts (Atom)</a> </div> </div> </div><div class='widget HTML' data-version='1' id='HTML6'> <div class='widget-content'> <script src="http://widgetserver.com/syndication/subscriber/InsertWidget.js?appId=e41934d8-3939-4bbc-be54-40e42b41ccb6" type="text/javascript"></script><noscript>Get the <a href="http://www.widgetbox.com/widget/crickternews-livescorecard-widget">Cricket Live Score Widget from CricketerNews.com</a> widget and many other <a href="http://www.widgetbox.com/galleryhome/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript> </div> <div class='clear'></div> </div></div> </div> </div> <div class='column-left-outer'> <div class='column-left-inner'> <aside> <div class='sidebar section' id='sidebar-left-1'><div class='widget Feed' data-version='1' id='Feed1'> <h2>Picaso</h2> <div class='widget-content' id='Feed1_feedItemListDisplay'> <span style='filter: alpha(25); opacity: 0.25;'> <a href='http://picasaweb.google.com/data/feed/base/user/prashanthkumar.chanda@gmail.com'>Loading...</a> </span> </div> <div class='clear'></div> </div></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='sidebar section' id='sidebar-left-2-1'><div class='widget HTML' data-version='1' id='HTML4'> <div class='widget-content'> <div id="vu_ytplayer_vjVQa1PpcFPWXmlRQyD7wr14npv7xzOqu5HVu_prugY="><a href="http://www.youtube.com/browse">Watch the latest videos on YouTube.com</a></div><script src="http://www.youtube.com/watch_custom_player?id=vjVQa1PpcFPWXmlRQyD7wr14npv7xzOqu5HVu_prugY=" type="text/javascript"></script> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML7'> <h2 class='title'>Search</h2> <div class='widget-content'> <style type="text/css"> @import url(http://www.google.com/cse/api/branding.css); </style> <div style="background-color:#999999;color:#000000" class="cse-branding-right"> <div class="cse-branding-form"> <form id="cse-search-box" action="http://www.google.co.in/cse" target="_blank"> <div> <input value="partner-pub-8859345293937280:2uhe5d-7uc5" name="cx" type="hidden"/> <input value="ISO-8859-1" name="ie" type="hidden"/> <input name="q" size="20" type="text"/> <input value="Search" name="sa" type="submit"/> </div> </form> </div> <div class="cse-branding-logo"> <img alt="Google" src="http://www.google.com/images/poweredby_transparent/poweredby_999999.gif"/> </div> <div class="cse-branding-text"> Custom Search </div> </div> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML9'> <h2 class='title'>Subscribe for new postings</h2> <div class='widget-content'> <form action="http://www.feedburner.com/fb/a/emailverify" style="border:1px solid #ccc;padding:3px;text-align:center;" target="popupwindow" method="post" onsubmit="window.open('http://www.feedburner.com/fb/a/emailverifySubmit?feedId=2041691', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><p>Enter your email address:</p><p><input style="width:140px" name="email" type="text"/></p><input value="http://feeds.feedburner.com/~e?ffid=2041691" name="url" type="hidden"/><input value="Welcome to the World of Knowledge and Fun..." name="title" type="hidden"/><input value="en_US" name="loc" type="hidden"/><input value="Subscribe" type="submit"/><p>Delivered by <a href="http://www.feedburner.com" target="_blank">FeedBurner</a></p></form> </div> <div class='clear'></div> </div><div class='widget Text' data-version='1' id='Text1'> <div class='widget-content'> <br/>"<span style="font-weight: bold; color: rgb(0, 153, 0);">Debugging is twice as hard as writing the code in the first place.</span><span style="font-weight: bold; color: rgb(0, 153, 0);">Therefore, if you write the code as cleverly as possible, you are,</span><span style="font-weight: bold; color: rgb(0, 153, 0);">by definition, not smart enough to debug it.</span>"<br/><span style="color: rgb(255, 0, 0); font-weight: bold;">--Brian Kernighan</span><br/> </div> <div class='clear'></div> </div><div class='widget Label' data-version='1' id='Label1'> <h2>Labels</h2> <div class='widget-content list-label-widget-content'> <ul> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Achievements'>Achievements</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/AMD'>AMD</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Books'>Books</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Browsers'>Browsers</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Bugs'>Bugs</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/C%20and%20C%2B%2B'>C and C++</a> <span dir='ltr'>(20)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Career%20Guidance'>Career Guidance</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Cracks'>Cracks</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Cricket'>Cricket</a> <span dir='ltr'>(8)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Desktops'>Desktops</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Drivers'>Drivers</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Enquary'>Enquary</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Finance'>Finance</a> <span dir='ltr'>(6)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/fresher%20Jobs'>fresher Jobs</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Fun'>Fun</a> <span dir='ltr'>(30)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/General'>General</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Good%20ones'>Good ones</a> <span dir='ltr'>(6)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Governament%20Jobs'>Governament Jobs</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/GSM%20Networks'>GSM Networks</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Health'>Health</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Informative'>Informative</a> <span dir='ltr'>(6)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Informix'>Informix</a> <span dir='ltr'>(5)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Inspiring'>Inspiring</a> <span dir='ltr'>(8)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Interview'>Interview</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/IPL'>IPL</a> <span dir='ltr'>(5)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Java'>Java</a> <span dir='ltr'>(5)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/JDBC'>JDBC</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Jobs'>Jobs</a> <span dir='ltr'>(4)</span> </li> <li> <span dir='ltr'>Linux</span> <span dir='ltr'>(21)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Microsoft'>Microsoft</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Mobile%20Technology'>Mobile Technology</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Mother%20Boards'>Mother Boards</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/News'>News</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Open%20Office'>Open Office</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Oppertunities'>Oppertunities</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/PC'>PC</a> <span dir='ltr'>(5)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Personality%20Development'>Personality Development</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Results'>Results</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Sardar'>Sardar</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Shell%20Scripting'>Shell Scripting</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Shopping'>Shopping</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Solaries'>Solaries</a> <span dir='ltr'>(9)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Technical%20Info'>Technical Info</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Technology'>Technology</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Unix'>Unix</a> <span dir='ltr'>(8)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Virus'>Virus</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='https://prashuch.blogspot.com/search/label/Windows'>Windows</a> <span dir='ltr'>(2)</span> </li> </ul> <div class='clear'></div> </div> </div><div class='widget BlogArchive' data-version='1' id='BlogArchive1'> <h2>Blog Archive</h2> <div class='widget-content'> <div id='ArchiveList'> <div id='BlogArchive1_ArchiveList'> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2010/'> 2010 </a> <span class='post-count' dir='ltr'>(1)</span> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2010/06/'> June </a> <span class='post-count' dir='ltr'>(1)</span> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2010_06_23_archive.html'> Jun 23 </a> <span class='post-count' dir='ltr'>(1)</span> <ul class='posts'> <li><a href='https://prashuch.blogspot.com/2010/06/178-isam-error-database-is-locked.html'>178: ISAM error: Database is locked; pending chang...</a></li> </ul> </li> </ul> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008/'> 2008 </a> <span class='post-count' dir='ltr'>(144)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008/07/'> July </a> <span class='post-count' dir='ltr'>(7)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_07_31_archive.html'> Jul 31 </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_07_30_archive.html'> Jul 30 </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008/06/'> June </a> <span class='post-count' dir='ltr'>(22)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_06_20_archive.html'> Jun 20 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_06_19_archive.html'> Jun 19 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_06_16_archive.html'> Jun 16 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_06_13_archive.html'> Jun 13 </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_06_11_archive.html'> Jun 11 </a> <span class='post-count' dir='ltr'>(7)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_06_06_archive.html'> Jun 06 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_06_04_archive.html'> Jun 04 </a> <span class='post-count' dir='ltr'>(9)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008/05/'> May </a> <span class='post-count' dir='ltr'>(9)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_05_29_archive.html'> May 29 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_05_28_archive.html'> May 28 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_05_27_archive.html'> May 27 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_05_23_archive.html'> May 23 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_05_22_archive.html'> May 22 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_05_13_archive.html'> May 13 </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_05_09_archive.html'> May 09 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008/04/'> April </a> <span class='post-count' dir='ltr'>(27)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_04_24_archive.html'> Apr 24 </a> <span class='post-count' dir='ltr'>(6)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_04_21_archive.html'> Apr 21 </a> <span class='post-count' dir='ltr'>(7)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_04_10_archive.html'> Apr 10 </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_04_09_archive.html'> Apr 09 </a> <span class='post-count' dir='ltr'>(5)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_04_04_archive.html'> Apr 04 </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_04_03_archive.html'> Apr 03 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_04_01_archive.html'> Apr 01 </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008/03/'> March </a> <span class='post-count' dir='ltr'>(33)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_28_archive.html'> Mar 28 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_27_archive.html'> Mar 27 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_26_archive.html'> Mar 26 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_25_archive.html'> Mar 25 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_24_archive.html'> Mar 24 </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_20_archive.html'> Mar 20 </a> <span class='post-count' dir='ltr'>(15)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_19_archive.html'> Mar 19 </a> <span class='post-count' dir='ltr'>(5)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_17_archive.html'> Mar 17 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_12_archive.html'> Mar 12 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_04_archive.html'> Mar 04 </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_03_03_archive.html'> Mar 03 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008/02/'> February </a> <span class='post-count' dir='ltr'>(46)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_02_29_archive.html'> Feb 29 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_02_28_archive.html'> Feb 28 </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_02_27_archive.html'> Feb 27 </a> <span class='post-count' dir='ltr'>(9)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_02_25_archive.html'> Feb 25 </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_02_21_archive.html'> Feb 21 </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_02_18_archive.html'> Feb 18 </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://prashuch.blogspot.com/2008_02_15_archive.html'> Feb 15 </a> <span class='post-count' dir='ltr'>(26)</span> </li> </ul> </li> </ul> </li> </ul> </div> </div> <div class='clear'></div> </div> </div><div class='widget LinkList' data-version='1' id='LinkList1'> <h2>Links</h2> <div class='widget-content'> <ul> <li><a href='http://www.incometaxindiaefiling.gov.in/portal/index.jsp'>Incomtax Portal</a></li> <li><a href='http://www.cpptutor.com/index.htm'>C++ Language Tutorials</a></li> <li><a href='http://www.winentrance.com/results/'>Exam Results</a></li> <li><a href='http://dictionary.reference.com/'>Dictionary</a></li> <li><a href='http://www.cert.org/secure-coding/'>Secure Coding</a></li> <li><a href='http://www.linux-tutorial.info/'>Linux knowledge Base and Tutorial</a></li> <li><a href='http://www.technologyreview.com/'>Technology Review</a></li> <li><a href='http://www.imdb.com/'>English Movies Rating</a></li> <li><a href='http://indyarocks.com/'>Indyarocks(Free SMS sending Site)</a></li> <li><a href='http://www.onlinesbi.com/'>SBI online</a></li> <li><a href='http://www.dhanunjayatravels.com/'>Dhanunjaya Travels</a></li> <li><a href='http://www.freerice.com/index.php'>Free Rice ( Welfare Site ..)</a></li> <li><a href='http://timesofindia.indiatimes.com/default.cms'>Times of India (English Daily)</a></li> <li><a href='http://www.google.co.in/'>Google India</a></li> <li><a href='http://www.indianrail.gov.in/'>Indian Railway</a></li> <li><a href='http://www.eenadu.net/'>Eenadu (Telugu News paper)</a></li> <li><a href='http://mail.google.com/'>Gmail</a></li> <li><a href='http://www.timepassmails.com/'>Timepass mails</a></li> <li><a href='http://www.cricinfo.com/'>Crickinfo</a></li> <li><a href='http://www.rediff.com/'>Rediff</a></li> <li><a href='http://www.yahoomail.com/'>Yahoo mail</a></li> <li><a href='http://news.google.com/'>Google News</a></li> </ul> <div class='clear'></div> </div> </div><div class='widget HTML' data-version='1' id='HTML1'> <div class='widget-content'> <div id="vu_ytplayer_vjVQa1PpcFPWXmlRQyD7whgf8Nguk4aGIDEopvpe-1E="><a href="http://www.youtube.com/browse">Watch the latest videos on YouTube.com</a></div><script src="http://www.youtube.com/watch_custom_player?id=vjVQa1PpcFPWXmlRQyD7whgf8Nguk4aGIDEopvpe-1E=" type="text/javascript"></script> </div> <div class='clear'></div> </div></div> </td> <td class='columns-cell'> <div class='sidebar section' id='sidebar-left-2-2'><div class='widget HTML' data-version='1' id='HTML10'> <h2 class='title'>Feed Burner</h2> <div class='widget-content'> <p><a href="http://www.feedburner.com" target="_blank"><img alt="I heart FeedBurner" style="border:0" src="http://www.feedburner.com/fb/images/pub/i_heart_fb.gif"/></a></p> </div> <div class='clear'></div> </div></div> </td> </tr> </tbody> </table> <div class='sidebar section' id='sidebar-left-3'><div class='widget HTML' data-version='1' id='HTML2'> <h2 class='title'>211 Degrees!!!</h2> <div class='widget-content'> <object width="425" height="355"><param value="http://www.youtube.com/v/FpJQqzJj534&hl=en" name="movie"/><param value="transparent" name="wmode"/><embed width="425" src="http://www.youtube.com/v/FpJQqzJj534&hl=en" wmode="transparent" height="355" type="application/x-shockwave-flash"></embed></object> </div> <div class='clear'></div> </div></div> </aside> </div> </div> <div class='column-right-outer'> <div class='column-right-inner'> <aside> </aside> </div> </div> </div> <div style='clear: both'></div> <!-- columns --> </div> <!-- main --> </div> </div> <div class='main-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> <footer> <div class='footer-outer'> <div class='footer-cap-top cap-top'> <div class='cap-left'></div> <div class='cap-right'></div> </div> <div class='fauxborder-left footer-fauxborder-left'> <div class='fauxborder-right footer-fauxborder-right'></div> <div class='region-inner footer-inner'> <div class='foot no-items section' id='footer-1'></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='foot no-items section' id='footer-2-1'></div> </td> <td class='columns-cell'> <div class='foot no-items section' id='footer-2-2'></div> </td> </tr> </tbody> </table> <!-- outside of the include in order to lock Attribution widget --> <div class='foot section' id='footer-3' name='Footer'><div class='widget Attribution' data-version='1' id='Attribution1'> <div class='widget-content' style='text-align: center;'> Ethereal theme. Powered by <a href='https://www.blogger.com' target='_blank'>Blogger</a>. </div> <div class='clear'></div> </div></div> </div> </div> <div class='footer-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </footer> <!-- content --> </div> </div> <div class='content-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </div> <script type='text/javascript'> window.setTimeout(function() { document.body.className = document.body.className.replace('loading', ''); }, 10); </script> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/851759228-widgets.js"></script> <script type='text/javascript'> window['__wavt'] = 'AAPvtVnyBSequuZzmSwZBh6uELBB:1790294810685';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d36017496','//prashuch.blogspot.com/search/label/Linux','36017496'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '36017496', 'title': 'Welcome to the World of Knowledge and Fun...', 'url': 'https://prashuch.blogspot.com/search/label/Linux', 'canonicalUrl': 'http://prashuch.blogspot.com/search/label/Linux', 'homepageUrl': 'https://prashuch.blogspot.com/', 'searchUrl': 'https://prashuch.blogspot.com/search', 'canonicalHomepageUrl': 'http://prashuch.blogspot.com/', 'blogspotFaviconUrl': 'https://prashuch.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en-US', 'localeUnderscoreDelimited': 'en', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Welcome to the World of Knowledge and Fun... - Atom\x22 href\x3d\x22https://prashuch.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22Welcome to the World of Knowledge and Fun... - RSS\x22 href\x3d\x22https://prashuch.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Welcome to the World of Knowledge and Fun... - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/36017496/posts/default\x22 /\x3e\n', 'meTag': '', 'adsenseClientId': 'ca-pub-8859345293937280', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': true, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/7ce469edaf870342', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': 'Share to X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'index', 'searchLabel': 'Linux', 'pageName': 'Linux', 'pageTitle': 'Welcome to the World of Knowledge and Fun...: Linux'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard!', 'ok': 'Ok', 'postLink': 'Post Link'}}, {'name': 'template', 'data': {'name': 'Ethereal', 'localizedName': 'Ethereal', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': false, 'variant': 'hummingBirds2', 'variantId': 'hummingBirds2'}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'Welcome to the World of Knowledge and Fun...', 'description': '', 'url': 'https://prashuch.blogspot.com/search/label/Linux', 'type': 'feed', 'isSingleItem': false, 'isMultipleItems': true, 'isError': false, 'isPage': false, 'isPost': false, 'isHomepage': false, 'isArchive': false, 'isSearch': true, 'isLabelSearch': true, 'search': {'label': 'Linux', 'resultsMessage': 'Showing posts with the label Linux', 'resultsMessageHtml': 'Showing posts with the label \x3cspan class\x3d\x27search-label\x27\x3eLinux\x3c/span\x3e'}}}]); _WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'navMessage': 'Showing posts with label \x3cb\x3eLinux\x3c/b\x3e. \x3ca href\x3d\x22https://prashuch.blogspot.com/\x22\x3eShow all posts\x3c/a\x3e', 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/120969204-lbx.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/828616780-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML6', 'main', document.getElementById('HTML6'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_FeedView', new _WidgetInfo('Feed1', 'sidebar-left-1', document.getElementById('Feed1'), {'title': 'Picaso', 'showItemDate': false, 'showItemAuthor': false, 'feedUrl': 'http://picasaweb.google.com/data/feed/base/user/prashanthkumar.chanda@gmail.com', 'numItemsShow': 2, 'loadingMsg': 'Loading...', 'openLinksInNewWindow': false, 'useFeedWidgetServ': 'true'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML4', 'sidebar-left-2-1', document.getElementById('HTML4'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML7', 'sidebar-left-2-1', document.getElementById('HTML7'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML9', 'sidebar-left-2-1', document.getElementById('HTML9'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_TextView', new _WidgetInfo('Text1', 'sidebar-left-2-1', document.getElementById('Text1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LabelView', new _WidgetInfo('Label1', 'sidebar-left-2-1', document.getElementById('Label1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar-left-2-1', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LinkListView', new _WidgetInfo('LinkList1', 'sidebar-left-2-1', document.getElementById('LinkList1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'sidebar-left-2-1', document.getElementById('HTML1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML10', 'sidebar-left-2-2', document.getElementById('HTML10'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML2', 'sidebar-left-3', document.getElementById('HTML2'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer-3', document.getElementById('Attribution1'), {}, 'displayModeFull')); </script> </body> </html>