Tips from an RHCE
by the editorial team
Use tar to create a backup on a remote server via ssh (you won’t need local drive space to make the file first):
tar cf user@station1.example.com:/tmp/mybackup.tar /path/to/myfiles --rsh-command=/usr/bin/ssh
Stop the screen from clearing when you quit a man page:
echo 'export MANPAGER="/usr/bin/less -iRsX"' >> ~/.bash_profile
Use lftp for sftp to any host running sshd (it is much better!):
lftp sftp://user@host.example.com
Tip contributed by Joshua M. Hoffman, RHCE/X Instructor II, Red Hat Global Learning Services







February 27th, 2007 at 3:38 am
This value for MANPAGER is nice too :
“col -b|vim -Rc ’se ft=man statusline=%=Line:\ %l/%L\ (%P)’ -c ‘nm ‘ -c ‘nm b ‘ -c ‘nm q :q\!’ -”
March 8th, 2007 at 6:48 pm
how to “start” configuring cluster in rhel 4 what are all the softwares required please explain in breif.
March 27th, 2007 at 6:06 am
Another, more generic, method for creating remote archives:
tar cf - /path/to/myfiles | ssh user@station1.example.com “cd /tmp ; tar xf -”
May 9th, 2007 at 5:41 pm
And if you don’t want to store paths:
tar -C /path/to -cf - myfiles | ssh user@station1.example.com “tar -C /tmp -xf -”