need of opening necessary files in reading (read-only) mode to avoid accidental editing of files such as /etc/resolv.conf or a large config or programming file on a production server. How do I open files in read-only mode in vim text editor on Linux or Unix-like system?
ow do I see colored man pages with standard Unix or Linux less command without installing most paging program
for Unix / Linux like operating system?
am using a Linux based system. In, vi or vim text editor, how do I show or hide line numbers? How do I show lines in vi?
How do I display and insert current date and/or time under vi or VIM text editor?
am a new Linux and Unix-like operating system user. How do search and find words in Vi Vim? How can I find a Word in Vim or vi text editor?
‘m using vim as a text editor and editing a large code file written in python. How do I jump to end of file using vim text editor under Apple Mac OS X Unix operating systems?
his happens lot of times. I login as a normal user and start to edit httpd.conf or lighttpd.conf or named.conf in vim / vi text editor. However, I’m not able to save changes due to permission issue (all config files are owned by root). How do I save file without creating a temporary file (/tmp/httpd.conf) and then move the same (mv /tmp/httpd.conf /etc/httpd) as root using vim / vi itself?