fedora

I often type the wrong command as follows under Linux bash shell:
rsync -av dir1 user@server1.cyberciti.biz:/path/to/dir1
OR
cp -av file1*.txt file2*.txt /path/to/dest

I need to correct those command as follows:

rsync -av dir5 user@server1.cyberciti.biz:/path/to/dir1
cp -av delta1*.txt delta2*.txt /path/to/dest

How do I replace dir1 with dir5 or file with delta and repeat the last command under bash shell?

{ 5 comments }

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

<PRE>
my data 1
my data 2
my data 3
my data 10000
my data N times
</PRE>
.....
..

How do I extract text between two words (<PRE> and </PRE>) in unix or linux using grep command?

{ 9 comments }

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?

{ 2 comments }

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?

{ 17 comments }

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?

{ 4 comments }

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

{ 1 comment }

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?

{ 1 comment }