≡ Menu


HowTo: grep Text Between Two Words in Unix / Linux

I got over 100s of HTML files in the following format:

 <title>Statistics for ABC LTD - January 2007 - Rang IDXYZZAZZZZ</title>
<body BGCOLOR="#E8E8E8" TEXT="#000000" LINK="#0000FF" VLINK="#FF0000">
<h2>Statistics for ABC LTF</h2>
Summary Period: January 2007<br />
Generated 01-Feb-2007 06:40 CET<br />
<hr />
<font SIZE="-1"></font></p></center><pre>
my data 1
my data 2
my data 3
my data 10000
my data N times

Generated by MyAppDbStatsWriter (UNIX) version 1.9b2

How do I extract text between two words (<PRE> and </PRE>) in unix or linux using grep command?
[click to continue…]

TCSH / CSH: set vs setenv Command Differences

I've recently started to use FreeBSD operating system with tcsh (c shell clone) shell. I noticed that both set and setenv command set shell user environment. What's the difference between the SET and SETENV commands?
[click to continue…]

Install and Use nmon Tool To Monitor Linux Systems Performance

How do I install nmon command under Linux operating systems to find out performance information for my CPU, memory, network, disk, virtual memory, top process and other part of my HP server running on Debian Linux or CentOS Linux 6.x amd64 bit server?
[click to continue…]

Linux / Unix: lftp Command Mirror Files and Directories

How do I mirror files from remote ftp server using lftp command? How do put the entier directory from a local disk to a remote ftp server (reverse mirror) using lftp command under Linux and Unix like operating systems?
[click to continue…]

Linux sys-unconfig: Reconfigure the System Upon Next Boot

I can use unconfigure command on a previously configured Solaris Unix box and leave it in an unconfigured state. How do I unconfigure CentOS Linux OR RHEL 6.x on HP server. How do I reconfigure the system upon next boot?
[click to continue…]

HowTo: Install firefox-14.0.1.tar.bz2 in Linux

I've downloaded Firefox version 14.0.1 from mozilla ftp server. The name of file is firefox-14.0.1.tar.bz2. How do I install firefox in any Linux distribution?
[click to continue…]

Linux / Unix: Rsync Resume Partially Downloaded Files

I know wget command can resume downloads. H>ow do I resume partially transferred files using rsync command line under Unix like operating systems?
[click to continue…]

Firefox Disable / Hide New Tab Page

I've upgraded to Firefox v13. However, I don't like the new tab page. I'm concerned about my privacy. How do disable or hide new tab page while using Firefox browser version 13? How do you get rid of the "new tab" page that shows recently visited pages?
[click to continue…]

HowTo: Install firefox-13.0.tar.bz2 in Linux

I've downloaded Firefox version 13.0 from mozilla server. The name of file is firefox-13.0.tar.bz2. How do I install firefox-13.0.tar.bz2 in any Linux distribution?
[click to continue…]

Linux / Unix: Bash Shell See All Exported Variables and Functions

How do I see a list of all exported variables and functions under Unix bash shell?
[click to continue…]