≡ Menu

shell

Apache: Graceful Server Reboot From Shell

How do I gracefully restart Apache web server from a shell prompt?
[click to continue…]

How To: Rename A File In Bash

How do I rename a file in bash under UNIX / OS X / Linux / BSD operating systems?
[click to continue…]

Linux Restrict Execution of /usr/sbin/userhelper to Console Users

I‘m CentOS Linux version 5.x user and I’d like to restrict execution of /usr/sbin/userhelper to console users only in xusers group?
[click to continue…]

FreeBSD: Load Kernel Module at Runtime

How do I load a kernel module at runtime from a shell prompt under FreeBSD UNIX operating systems?
[click to continue…]

Find command: Exclude or Ignore Files (e.g. Ignore All Hidden .dot Files )

How do I ignore all hidden .dot files while searching for files using the find command? How do I ignore or exclude certain files while running Linux or UNIX find command?
[click to continue…]

Display Apache Server Status with mod_status

Q. How do I display Apache server status such as current server activity and performance under Red Hat Enterprise Linux / UNIX / BSD?
[click to continue…]

Q. I’ve recently changed email user account password using passwd command, for one my postfix email server which requires SMTP authentication before sending an email. Now following error is logged into my /var/log/maillog file:

ERROR: Password not accepted from server: 535 5.7.0 Error: authentication failed: authentication failure

How do I solve this problem under Red Hat enterprise Linux running Postfix with SASL authentication?
[click to continue…]

How To Extract a Single File / Directory from Tarball Archive

Q. How do I extract a single file or directory form a tarball under UNIX / Linux shell prompt? How do I restore a single file from /dev/st0 tape device?
[click to continue…]

Linux / UNIX Display Lines Common in Two Files

Q. I’m trying to use diff command, but it is not working. I’d like to display those lines that are common to file1 and file2? How do I do it?
[click to continue…]

How To Start and Stop MySQL Database Server From A Shell Prompt

Q. How do I start and stop mysql server under Debian / Ubuntu Linux system?

[click to continue…]