≡ Menu

vi command

VIM: Jump Back To Previous or Last Cursor Position

Writing shell scripts in vim I usually go search for functions or something. Copy lines and then go back to where I was and modify the code. However, I need to manually navigate way back to the previous / last position. How can I automatically go back to where I was when I started my search operation under vim?
[click to continue…]

RHEL / Centos 6: Install Nginx Using Yum Command

How can I install Nginx web server On CentOS Linux 6 or Red Hat Enterprise Linux 6 using yum command?
[click to continue…]

Ubuntu: Mount The Drive From Command Line

I'm new to Ubuntu Linux. How do I mount the hard disk drive from command line?
[click to continue…]

How To Use UUID To Mount Partitions / Volumes Under Ubuntu Linux

Q. Can you explain UUID concept related to Linux ext3 partitions and storage devices? How do I update /etc/fstab using UUID under Ubuntu Linux or any other Linux distro?
[click to continue…]

Setting Up a CentOS / Red Hat Linux DHCP Client

Q. How do I setup my Red Hat / CentOS / Fedora Linux system to get IP address and other information via a DHCP server for eth0 interface?
[click to continue…]

Where Does The PHP Error Log Reside

I'm running CentOS 5.x server with Apache 2.2 + PHP 5.x server. Can you tell me exact location for php error log file?
[click to continue…]

Install OpenSSH Server on Asus EEE PC

Q. How do I install OpenSSH server on Asus EEE Laptop PC?
[click to continue…]

HowTo: Create Files in Linux From a Bash Shell Prompt

I'm a new to CentOS Linux user. How do I create a file from bash prompt without using GUI tools?
[click to continue…]

How to Set JAVA_HOME / PATH variables Under Linux Bash Profile

I just need a help to show me how to setup java path on Linux. How can I set JAVA_HOME and PATH variables for every user under my Linux system?
[click to continue…]

OpenBSD set up default boot time by modifying boot.conf file

Q. I’m using OpenBSD as VPS os (guest os) under VMWARE server. However OpenBSD pauses for a few seconds to give me a chance to provide parameters to the kernel at boot> prompt. I'd like to force boot loader to wait for 30 seconds instead of default timeout. How do I setup bootloader timeout?

A. OpenBSD uses boot program. The main purpose of this program is to load the system kernel while dealing with the downfalls of the PC BIOS architecture. This program acts as an enhanced boot monitor for PC systems, pro viding a common interface for the kernel to start from. By default, boot attempts to load the kernel executable /bsd. If it fails to find the kernel and no alternative kernel image has been specified, the system will be unable to boot.

/etc/boot.conf file and timeout parameter

/etc/boot.conf is configuration file for bootloader. Open file using text editor:
$ sudo vi /etc/boot.conf
Append / modify timeout parameter as follows:
set timeout 30
Save and close the file. Above line set the 30 second pause at boot-time.