Hi Folks,
I have opened a log file through Vi editor in putty itself and I was searching for a pattern in logs , let say 'ABCD'
Code:
/abcd
then I want to come out from vi editor, Please advise what is the command to come out from unix editor..!
Hi Folks,
I have to reached to a particular location to read the logs , Currently I reached to that location and open the log file in vi editor..
Code:
cd /var/logs/abc.log
vi abc.log
And I have to search the string in the while opening the logs in Vi editor itself , lets say I have to search 'uuttuu' in logs that I do as..
Code:
/uuttuu
But please advise how grep command can h
Please forgive me if I am not posting this is the correct forum. I am extremely new at this, so please bare with me as I try to explain my problem. At work we are using Cisco Voip phones and when setting them up we first create a config file in vi editor. I first use a program called putty.
As you have read my previous article about the "less" command, if you hit the letter "v" when using "less", the default system text editor will be activated to allow you to edit the current file.
When within vim (the editor I use mostly because of the terminal integration), I want to run my script (e.g. Python or Javascript) from within vim. I do not mind if it opens a new window, I would just like to know if there is an editor command for save/run. TNX1.0E6,
-Selby
My favorite editor is vim, but some others prefer nano, or emacs, nano reminds me WordStar, anyway.
Cron job default editor which is invoqued by the command crontab -e is vi, while I prefer vim, and you may prefer nano, you can use this command.
env EDITOR=nano crontab -e
or as I usually do:
env EDITOR=vim crontab -e
Hi Folks,
Please advise me that I have to search some thing in log , I have reached to that Location through putty and I have opened that log file through putty with VI editor ..
Code:
cd /var/abc.log
tail -f abc.log
vi abc.log
and I see the logs but please advise me the commands..If I need to search something in logs what Vi commands I need ..lets say in log I need to search a word 'abcd'
I use Vim a lot, and I know how I can start vim in insert mode. So I have an alias named vii in my .bash_aliases file.
On other hand I use Git a lot too, and I have this line in my .gitconfig:
[core]
editor = vi
To write a commit message the vi editor is opened every time and I have to go in insert mode.
Hi there:Howto change the default editor:Open a terminal and run this command: update-alternatives --config editor