≡ Menu

bsd

Where Is The Xorg.conf File Located under Unix / Linux / BSD?

I want to find and edit my xorg.conf file for tweaking and configure it for new settings. The problem is that I'm unable to find the file. According to my research, xorg.conf should in /etc/X11 or /usr/X11R6/lib/X11/ directory. I found directories but not the file in directories. How do I find the xorg.conf under Unix or Linux like operating systems?
[click to continue…]

HowTo: Iterate Bash For Loop Variable Range Under Unix / Linux

How can I iterate bash for loop using a variable range of numbers in Unix or Linux or BSD or Apple OS X operating systems?
[click to continue…]

vi Find And Replace Text Command

How do I find and replace (substitute) test using vi or vim text editor under UNIX / Linux / BSD or Apple OS X operating systems?
[click to continue…]

UNIX Disk Usage Command Examples

How do I find out disk usage under UNIX operating systems using GUI, CLI and Perl / shell programs?
[click to continue…]

Linux KVM: OpenBSD Guest Hangs At Starting tty Flags

OpenBSD version 4.5 and above made changes in kernel which prevents booting OpenBSD using KVM technology. OpenBSD 4.4 runs with mbbios enabled. However, due to some sort of bug in KVM it does not boot and hangs while displaying a message which read as "Starting tty flags". The workaround is to disable mpbios. This may or may not happen with your installation, but if it hanged, use the following procedure.
[click to continue…]

mod_setenv: Lighttpd Send Custom Headers

How do I add a header to the HTTP request that was received from the client under Lighttpd web server?
[click to continue…]

Linux/UNIX: Move File Starting With A Dash

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)?
[click to continue…]

Apple Mac OS X Open And View .chm File

I know how to open .chm files under Linux, but how do you open and view .CHM files under Apple Mac OS X?
[click to continue…]

Linux / UNIX Restrict at / cron Usage To Authorized Users

The cron and at services are used to allow commands to be executed at a later time. How do I restrict them to selected users such as root, opt1, opt2 and so on? How do I make sure user php can run php script but cannot modify or install a new job?
[click to continue…]

Linux / BSD Shell Doesn't Recognize Newly Installed Binaries

I've installed few software using tar ball format under Linux or FreeBSD ports using make command. However, my system doesn't recognize the installed command. I've to reboot the system or log out and log in again to use the same. How do I fix this problem?
[click to continue…]