
Estaba mirando history
en un servidor y vi a mi compañero de trabajo usar el view
comando en un archivo.
Lo mejor que puedo decir es que lo mira $EDITOR
y luego abre ese archivo con él.
Quiero saber más sobre cómo funciona, pero está resultando difícil. Usar man
o info
on view
simplemente devuelve la página de ayuda para su archivo $EDITOR
. No tiene una help
página y buscarla en Google es obviamente difícil.
¿Alguna idea?
Respuesta1
El uso de man view
uno es dirigido a la página de manual de vim
. Dentro encontré esto:
view Start in read-only mode. You will be protected from writing the files. Can also be done with the "-R" argument.
Respuesta2
La respuesta en mi sistema me pareció interesante. Empezando con:
type view
view is /usr/bin/view
Entonces, ¿qué es eso?
file /usr/bin/view
/usr/bin/view: symbolic link to /etc/alternatives/view
file /etc/alternatives/view
/etc/alternatives/view: symbolic link to /usr/bin/vim.basic
Entonces, al final (al menos en sistemas basados en Ubuntu), es un enlace simbólico administrado por update-alternatives
.
update-alternatives --config view
There are 2 choices for the alternative view (providing /usr/bin/view).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/vim.basic 30 auto mode
1 /usr/bin/vim.basic 30 manual mode
2 /usr/bin/vim.tiny 10 manual mode
Press <enter> to keep the current choice[*], or type selection number: