Archive for the ‘www.cyberciti.biz’ Category

Screen Command: Set Baud Rate [ Terminal Communication ]

Posted on January 27th, 2011 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I need to do router or network switch configuration via a console port such as COM1 (ttyS0 under Linux). How do I use the screen command for a serial terminal emulator network with different baud rates under UNIX or Linux operating systems?

UNIX / Linux: HowTo Use unison File Synchronizer

Posted on August 16th, 2010 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I know how to use rsync for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer. However, I would like to synchronizing files between two directories, either on one computer, or between a computer and another server. How do I maintain the same version of files on multiple servers?

FreeBSD: Permanently Delete / Remove Files With Shred

Posted on June 23rd, 2010 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I'm going to upgrade my FreeBSD 7.x server hard disks and going to send back the original 73GB hard disk to my vendor. I wanted to make sure that no one should able to use my personal data from old hard disk, especially files stored in /home/you/projects directory. I know how to use sDelete under MS-Windows to delete a

(Read more...)

[ERROR] /usr/local/libexec/mysqld: unknown variable ‘thread_concurrency=8′

Posted on April 25th, 2010 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I'm trying to set 'thread_concurrency to 8 under Linux MySQL server. But when I try to restart the mysql server, I get the following error:
[ERROR] /usr/local/libexec/mysqld: unknown variable 'thread_concurrency=8'

How do I fix this problem?

Bash Shell Find Out If A Command Exists On UNIX / Linux System ($PATH) OR Not

Posted on April 6th, 2010 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I want find out if a command exists on UNIX from a bash shell script. If command does not exists, then I would like to display an error message on screen. How do I find out if a command exists on Posix system or not?

Linux/UNIX: Move File Starting With A Dash

Posted on February 20th, 2010 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

In Unix or Linux operating systems, how do I move file(s) starting with a dash (e.g., /home/you/--filename.txt or /home/you/-filename.txt)?

HowTo: Display / Echo Path Settings In Linux / UNIX / *BSD

Posted on February 1st, 2010 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

How do I display my current path settings under Linux / FreeBSD / OpenBSD / NetBSD / Apple OS X / UNIX like operating systems using bash or ksh or csh / tcsh shell?

KVM: Starting / Stopping Guest Operating Systems With virsh Command

Posted on January 12th, 2010 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

The virsh command can be used to mange local or remote guest operating systems. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains.

Linux / UNIX: tar Command Stay In Local / File System When Creating Archive

Posted on November 23rd, 2009 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I'd like to make / file system backup but the problem is there are other file systems mounted under / such as:

/mnt/cdrom
/mnt/nfs
/iscsi
/boot
/var

I'd like to skip all other file systems mounted at / and only make backup of local / and not /boot, /var, /iscsi, and /mnt/cdrom etc. How do I force tar to

(Read more...)

sed Delete / Remove ^M Carriage Return [ Line Feed ]

Posted on November 18th, 2009 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

How can I remove the ^M or ^M (carriage Return / line feed ) from text file using sed under UNIX or Linux operating systems?

UNIX Get An Alert When Disk Is Full

Posted on August 13th, 2009 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I want to get an alert when my disk is full under UNIX and Mac OS X? How do I set a a specified threshold and run the script via cron?

FreeBSD / OpeBSD Running in KVM Does Not Accept FTP Traffic

Posted on July 5th, 2009 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I've setup FreeBSD and OpenBSD under KVM. Everything works great except ftp protocol. I've no firewall installed inside FreeBSD and OpenBSD. How do I configure Linux host KVM firewall to allow ftp traffic?

FreeBSD Jail Add Multiple IPv4 / IPv6 Address

Posted on April 23rd, 2009 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

How do I add multiple IPv4 / Ipv6 inside jail?

FreeBSD: ldconfig -v Lost Dynamic Linker Configuration

Posted on March 29th, 2009 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

I've typed ldconfig -v (Linux like command) under FreeBSD 7.1_P4_64 bit to get list of directories used by system. But I lost all my configuration and getting shared object not found errors for almost all commands such as vim or bash and so on. How do I fix this problem without rebooting the system?

Monitor ZFS Disk Space Storage Pool File System

Posted on January 1st, 2009 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

How do I find and/or monitor disk space in your ZFS storage pool and file systems under FreeBSD or Solaris / OpenSolaris UNIX operating systems?

FreeBSD: Nginx FastCGI PHP Configuration

Posted on October 9th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. How do I configure PHP as FastCGI under FreeBSD Nginx webserver?

UNIX Shell: Find Out Real Path Of File ( Directory )

Posted on October 3rd, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. Some of my programs and scripts needs a real path and not a a symbolic link. How to I determine a real path of any directory under Linux / UNIX operating systems? How do I remove references to /./, /../ and extra '/' character in path?

FreeBSD: Mount /usr/ports Inside Jail

Posted on October 3rd, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. I'd like to save disk space for my FreeBSD 7 ISP server. We run webserver, nameserver from various jails under powerful HP RAID 10 server. How do I export /usr/ports from host to each jail hosted on /jail/ volume such as /jail/www, /jail/ns, /jail/sql etc?

FreeBSD: Apache httpready filter – Failed to enable the ‘httpready’ Accept Filter

Posted on September 19th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. I've installed Apache 2.2 from FreeBSD 7.0 ports and when I try to start I get following warning on screen:
Performing sanity check on apache22 configuration: Syntax OK Starting apache22. [Wed Sep 17 22:01:58 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter

How do I fix this error?

FreeBSD: Cannot load /usr/local/libexec/apache22/mod_security2.so into server: /usr/local/libexec/apache22/mod_security2.so

Posted on September 17th, 2008 by "Vivek Gite" from "Frequently Asked Questions About Linux / UNIX » FreeBSD"

Q. I've installed Apache2 and mod_security21 under FreeBSD. Whenever I try to restart apach22 process I get following error:

Cannot load /usr/local/libexec/apache22/mod_security2.so into server: /usr/local/libexec/apache22/mod_security2.so


How do I fix this problem?