From the monthly archives:

January 2007

Q. How can I disable power management on my Fedora Core Linux system?
A. You need to stop APM (Advanced Power Management) service called apmd. It can be stopped by calling /etc/init.d/ script as follows:
# /etc/init.d/apmd stop
If you don’t want this service to return after a reboot type following command and deselect apmd
# ntsysv
Or use chkconfig [...]

{ 1 comment }

Q. How do I locate files on Debian Linux?
A. You can use find and locate command.
find command search a file system in real time. So depending on the size of your file system (partition) and the depth of your search, the find command can sometime take a long time to scan all of the data.
To [...]

{ 0 comments }

Q. How do I list all installed packages on Linux or FreeBSD system?
A. Most Linux distributions are based upon rpm or apt-get / dpkg packaging system.
RedHat, Fedora Core, Suse Linux, Cento os all are RPM based distribution
Use rpm command as follows to list all installed packages
rpm -qa
rpm -qa | grep ‘package-name’
rpm -qa | grep [...]

{ 0 comments }

Q. I have job (executed from shell script) where I need to run mysql query from a shell script. I want to run mysql from within a shell script rather than use it interactively by typing mysql -u user -p dbnane command.
How do I use mysql in Shell Scripts?
A. I recommend using Perl or php [...]

{ 14 comments }

Q. How do I configure batch jobs under Fedora Linux?
A. Linux provides batch and at command using at package. You need to install this package to use at and batch command. These commands read commands from keyboard or a specified file which are to be executed at a later [...]

{ 1 comment }

Q. I am running out of swap space due to Oracle database. This is a production server. How do I add a new swap file or area that doesn’t demand a reboot of the system?
A. Sun Solaris UNIX offers very easy way to add swap file or space on fly without rebooting Solaris system.
Login [...]

{ 0 comments }

Q. How do I view and verify Apache server performance status under Linux / UNIX operating system?
A. The Status module (mod_status) allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can [...]

{ 1 comment }

nixCraft FAQ PDF Collection Now Available To All