Важность vi/vim для системного администратора [закрыто]

В настоящее время я использую TextMate в качестве текстового редактора. Насколько важно выучить что-то вроде vi, если я хочу делать больше вещей, связанных с системным администратором, в основном с участием ssh?

2
задан 7 April 2012 в 22:29
4 ответа

I'll go ahead and say very important.

Vi or vim will be on every linux or unix system you every get your hands on, whereas TextMate most certainly will not. While you may be able do to day-to-day admin stuff using TextMate and scp, what happens when you have to recover or do maintenance on a system that doesn't have a network connection? In that case, you'll be working directly on the console, and you'll likely be stuck with vim. If you're not in the habit of using vim on a regular basis, the situation is going to be much more stressful than it needs to be for you.

Additionally, it's really just a Good Thing(tm) to be able to admin your machines using only an ssh client. I carry my (password-protected) private keys around on a USB thumb drive along with the PuTTY ssh client. It's very nice to know that, from wherever I am, even if I don't have my own laptop along, I can get into my servers without needing to muck around with client-side applications.

As an aside, I tend to use familiarity with vim (and CLI usage in general) as a means of judging the skill of sysadmins I work with, interview, or otherwise come into contact with. Whether or not this is appropriate can be left for another discussion, but personally, I tend to be wary of any so-called sysadmin that doesn't at least have a modicum of vim/CLI knowledge.

11
ответ дан 3 December 2019 в 08:37

vi can be very feature reach, and you definitely might not need to use all those features, but knowing how to search for text, edit, delete, copy/paste, save files and abandon changes is definitely more than useful. Takes about 20 minutes to learn all of the above, and you're good to go, and use vi for sysadmin tasks.

1
ответ дан 3 December 2019 в 08:37

Yep, it's on everything, I came across it as the only editor on a system that I was trying to recover and had to grope (grep???) around blindly whilst trying to get my head around the different modes. I resolved to learn it and it's now my goto editor, I script in it, edit windows config files and of course edit Linux config etc.

Learn it, use it, extend it, abuse it.

0
ответ дан 3 December 2019 в 08:37

Я думаю, что знание vi для системного администратора, работающего в средах Unix, почти необходимо (необходимо знать), потому что оно присутствует почти во всех Unix вариант и "потомок", так что, если вы знаете vi , вы можете редактировать файлы в любой системе без необходимости установки новых пакетов.

Кроме того, это один из самых мощных редакторов в мире, поэтому изучение хотя бы его основы стоит усилий, всегда ...

0
ответ дан 3 December 2019 в 08:37

Теги

Похожие вопросы