≡ Menu

HP-UX Unix

Linux / UNIX Automatically Logout BASH / TCSH / SSH Users After a Period of Inactivity

My development and testing webserver is used by over 100s of users. These users login from Windows XP, Linux, Mac OS X system via ssh/putty client. How do I set or automatically log users out after a period of inactivity under RHEL/Fedora/CentOS Linux server to improve server security and save some resources?
[click to continue…]

BASH Shell Redirect Output and Errors To /dev/null

How do I redirect output and errors to /dev/null under bash / sh shell scripting? How do I redirect the output of stderr to stdout, and then redirect this combined output to /dev/null device? In Unix, how do I redirect error messages to /dev/null?
[click to continue…]

Find the DNS Authority Record for a DNS Domain (SOA)

Q.How do I find out the DNS authority record (SOA) for any DNS domain under UNIX / Linux shell?
[click to continue…]

BIND: Clocks are Unsynchronized Error and Solution

Q. I've configured BIND named TSIG as documented here. It worked for some time, but my /var/log/messages got the errors as follows:

zone example.org/IN: refresh: failure trying master 71.22.11.22#53 (source 0.0.0.0#0): clocks are unsynchronized: 9 Time(s)
zone example.org/IN: refresh: failure trying master 71.22.11.22#53 (source 71.22.11.22#0): clocks are unsynchronized: 9 Time(s)

How do I fix these errors under Debian Linux 64 bit etch server?
[click to continue…]

Linux / UNIX: Ping a Block of Hosts (netblock)

Q. How do I ping a block of hosts such as 192.168.1.0/24?
[click to continue…]

UNIX Command To Rename A File

How do I rename a file in UNIX using command line options?
[click to continue…]

Search Text File In UNIX

How do I search the input text files for lines matching given words or strings under UNIX operating systems?
[click to continue…]

UNIX mv Command Examples

How do I use mv command to rename or move file under UNIX operating systems?
[click to continue…]

Tar Extract a Single File(s) From a Large Tarball

Q. I've couple of large tarballs such as www.tar and images.tar. Is it possible to extract a single file or a list of files from a large tarball such as images.tar instead of extracting the entire tarball? How do I extract specific files under Linux / UNIX operating systems?
[click to continue…]

HP-UX: Boot Into Single User Mode

Question: I know how to boot into single user mode under Linux and FreeBSD. But, how do I boot into single user mode under HP-UX (HP9000) UNIX operating system?
[click to continue…]