[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: history command
- From: Michael Fratoni <mfratoni tuxfan homeip net>
- To: redhat-list redhat com
- Subject: Re: history command
- Date: Thu Jan 2 06:24:05 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 02 January 2003 05:24 am, Patrick Law wrote:
> Hie again...
>
> How to do a select-all in vi?
> I want to select all then remove entries in .bash_history.
> Can anyone recommend any site or reference for vi?
> Thanks a lot.
Learning vi is a good goal, but it is overkill for this task.
You don't need to use vi if you are just trying to clear the file.
'echo > .bash_history'
will leave you with an empty file without opening a text editor.
- --
- -Michael
pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+FCEnn/07WoAb/SsRAoiVAKC6v1voLPpyoWpaHg6FMLII/oXbVACeLnBT
8tXv1AqhbHEn26CvGumuuVo=
=+6D+
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]