≡ Menu

NetBSD

Linux/Unix: Cat Command Display Line Numbers

How do I use the cat command to display the line numbers for a file called myapp.c under Linux or Unix like operating systems?
[click to continue…]

Vi / Vim: Quit Without Saving Command

I am a new vi / vim text editor user. How can I quit the vi / vim text editor without saving my changes to a file under Linux / Unix like operating systems?
[click to continue…]

MySQL/MariaDB Server: Bind To Multiple IP Address

I have MySQL/MariaDB database system running on a FreeBSD/Linux server. The server has multiple ip address. The mysqld used by many websites hosted on two other CentOS Linux based servers. I would like to bind MySQL sever running on a Linux or Unix-like server to more than one IP address such as 202.54.1.2, 202.54.1.10, and 202.54.1.15. How can I bind mysqld to multiple ips?
[click to continue…]

I am login to a remote server using a ssh client. I am annoyed with the arrow key behavior during insert mode in Vim. As soon as I hit arrow keys, vim display A B C D on screen. How do I fix this problem under Linux, FreeBSD, OpenBSD, NetBSD, Apple OS X or Unix-like operating systems? How can I fix arrow keys that display A B C D on remote shell?
[click to continue…]

Linux: Mount FreeBSD UFS 2 File System Command

I need to copy files from my second hard disk. This hard disk formatted with UFS 2 file system. How do I mount UFS 2 file system created by FreeBSD on my Debian Linux 6 based system?
[click to continue…]

Unix Copy Command Examples [ cp command ]

How do I copy files under Unix operating system using ksh or csh or bash shell prompt?
[click to continue…]

How do I see a list of all exported variables and functions under Unix bash shell?
[click to continue…]