Ever wanted to have a Linux desktop. Try UBUNTU, it's been consistently rated among the most popular of the many Linux distributions
read more here.
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Friday, January 30, 2009
Wednesday, November 5, 2008
zcat Shell command (UNIX / Linux)
The zcat command allows the user to view the contents of a compressed file without uncompressing that file by writng contents to the standard output. The zcat command does not rename the expanded file or remove the .Z extension.
The command expects compressed input files (i.e. .Z, .gz, or .bz2)
zcat is equivalent to: uncompress -c
Flags
-n Omits the compressed file header from the compressed file.
-V Writes the current version and compile options to standard error.
Example:
zcat file_1.Z wc -l (print the newline counts)
zcat file_1.Z more (filter for paging through text one screenful at a time)
The command expects compressed input files (i.e. .Z, .gz, or .bz2)
zcat is equivalent to: uncompress -c
Flags
-n Omits the compressed file header from the compressed file.
-V Writes the current version and compile options to standard error.
Example:
zcat file_1.Z wc -l (print the newline counts)
zcat file_1.Z more (filter for paging through text one screenful at a time)
Wednesday, October 29, 2008
KORN shell command line auto-complete
Add the following to the to file that your shell uses for initialization (i.e. .profile)
set -o vi
To use the command line auto complete, press Esc
Note: This only auto-complete the unique part of the file name.
set -o vi
To use the command line auto complete, press Esc
Note: This only auto-complete the unique part of the file name.
Thursday, October 16, 2008
Flush out deferred mails (Postfix)
linux kernel system uptime route program HPUX AIX solaris sparc 32bit 64bit platform korn bash
Here's the simple script. This was used on Redhat 7.2(Enigma) runnning Postfix as the MTA
awk unix perl tar gzip rpm
#!/bin/sh
DEFERDIR=/var/spool/postfix/deferred
TMPFILE=/tmp/listMailer
mailq | grep MAILER-DAEMON | cut -f1 -d ' ' > $TMPFILE
for DEFERFILE in `cat $TMPFILE | grep -v *`
do
/usr/sbin/postsuper -d $DEFERFILE deferred
done
Here's the simple script. This was used on Redhat 7.2(Enigma) runnning Postfix as the MTA
awk unix perl tar gzip rpm
#!/bin/sh
DEFERDIR=/var/spool/postfix/deferred
TMPFILE=/tmp/listMailer
mailq | grep MAILER-DAEMON | cut -f1 -d ' ' > $TMPFILE
for DEFERFILE in `cat $TMPFILE | grep -v *`
do
/usr/sbin/postsuper -d $DEFERFILE deferred
done
Subscribe to:
Posts (Atom)