awk
awk -F: '{ printf("%-15s %s\n", $1, $5) }' /etc/passwd
perl
printf "%-21s %-s\n", "--from", "search envelope sender address";
shell
printf "%-9s %-16s %-8s %-8s\n" "Switch" "MAC address" "Module" "Port" > $OUTPUT_FI...
Wednesday, 28 August 2013
vi temporary work file location
By default, vi places temporary work files in /var/tmp. You may want to redirect these work files to another location, especially if /var cannot be mounted in case of an error in your system's file system table (e.g. /etc/vfstab, /etc/fstab).
A temporary way to redirect these files:
EXINIT="set dir=directory" vi file
e.g. EXINIT="set dir=/tmp" vi...
Solaris-Changing IP address
The following steps may be used to change the IP address of a Solaris system.
1. Change the host's IP in /etc/hosts for the change to take effect after reboot. If you are using Solaris 10, you must also change the host's IP in /etc/inet/ipnodes for the change to take effect after reboot.
2. Run ifconfig interface ip_address netmask broadcast_address...
AIX Error logging
This procedure provides the steps that are required to check the AIX error log.
After the terminal window is open, simply type
errpt |pg (pg permits you to display one page at a time)
The columns that you need to review are:
TIMESTAMP
(Column #2)
Provides a shortcut version of the date and time.
Example:0827041513
0827 = August...
Tuesday, 27 August 2013
Howto Red Hat Enterprise Linux configuring the network
Red hat Linux provides following tools to make changes to Network configuration such as add new card, assign IP address, change DNS server, etcetera:
GUI tool (X windows required) - system-config-network
Command line text based GUI tool (No X windows required) - system-config-network-tui
Edit configuration files directly, stored in /etc/sysconfig/network-scripts...
Monday, 26 August 2013
List of Important files and Directories in Linux (Redhat,Centos,Fedora)
In this section we are going to learn about the important files and directories in the Linux OS like Redhat,Centos,Fedora).
you will get good idea to clear about yourself.
Hidden “Dot” Files
There are some files within the home directory that are ordinarily hidden. Hidden files have names that begin with a period; hence,...