Display file info from inside vim editor

Get the name of current file from inside vim

For example, considering I am editing file /home/user/server.txt The following commands could be entered to display the information shown.

Continue reading


Add a kernel option using grub2

How to pass an option to the kernel – that should be from the bootline – using grub2:

Edit the kernel entry on /boot/grub2/grub.cfg, but that is going to be lost when the kernel is updated. To make it permanent, add it to GRUB_CMDLINE_LINUX on /etc/default/grub and run grub-makeconfig again.

Press ‘e‘ in the gray initialization menu. Edit the linux line, like for example:

linux /vmlinuz-3.10.0-64.el7.ppc64 root=UUID=807b0ca4-f10e-4a27-8d53-a
577fbd6eb98 ro vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-s
un16 LANG=en_US.UTF-8 disable_ddw=y