12-07-2003
1. Try
date -u '+%H:%M'
2. This depends on what you are sorting
3. Try
head -c 10 myfile
Please read the man pages for details.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Where can I get a list of basic commands ? I want to get up to speed as soon as possible ? thanks..... (4 Replies)
Discussion started by: drukkie
4 Replies
2. UNIX for Dummies Questions & Answers
I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies
3. UNIX for Dummies Questions & Answers
I would be happy to streamline some of the commands I am trying to learn with easy to remember terms, like dir for ls -l. I am wondering if you script certain commands for every time you start-up your system, can use those aliases there? If so, would that prove a problem for administrators who... (2 Replies)
Discussion started by: wmosley2
2 Replies
4. HP-UX
HP 9000/800 Server running HP-UX UNIX Server, users are connected via LAN and dialup connection.
Need help to write SHELL SCRIPT or UNIX Commands which would perform the following:
-ping IP address of all login/connected users to our server
-send customized text message to all the login... (1 Reply)
Discussion started by: Moinul Haque
1 Replies
5. UNIX for Dummies Questions & Answers
I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked.
Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies
6. UNIX for Advanced & Expert Users
hi experts,
Where will I be able to find the whole man of unix commands in Web(the official documentation)?
How many commands are there in total in Unix? (3 Replies)
Discussion started by: Sreejith_VK
3 Replies
7. UNIX for Dummies Questions & Answers
i want to know how to do a few things using unix commands.
firstly say I have a .txt file that contains random lines like
Hello
Goodbye
I'm tired
5
74
using the grep command how can I get a list of lines that contain ONLY digits?
also using pipes to combine ls and grep commands how... (5 Replies)
Discussion started by: ez45
5 Replies
8. UNIX for Dummies Questions & Answers
Hello Folks
Where can I find all the unix commands with explanations , on the internet. I am searching but most of the sites are listing a few of the important ones. PLease guide through
thanks (4 Replies)
Discussion started by: supercops
4 Replies
9. UNIX for Dummies Questions & Answers
What are the various commands which use $ in unix and what do each of these indicate? eg: echo $? returns the success status of the previous commands..similarly $$ returns some numeric value..wat exactly are these?
From where can a download a document which can help me getting more details about... (2 Replies)
Discussion started by: DDS
2 Replies
10. UNIX for Dummies Questions & Answers
Having trouble doing the following things, I know it has something to do with using metacharacters but I'm not able to get it working correctly.
I need a command to get a long directory listing of all the files that have:
exactly two characters following the letters zot.
all files that... (1 Reply)
Discussion started by: lakers34kb
1 Replies
LEARN ABOUT CENTOS
gai.conf
GAI.CONF(5) Linux Programmer's Manual GAI.CONF(5)
NAME
gai.conf - getaddrinfo(3) configuration file
DESCRIPTION
A call to getaddrinfo(3) might return multiple answers. According to RFC 3484 these answers must be sorted so that the answer with the
highest success rate is first in the list. The RFC provides an algorithm for the sorting. The static rules are not always adequate,
though. For this reason, the RFC also requires that system administrators should have the possibility to dynamically change the sorting.
For the glibc implementation, this can be achieved with the /etc/gai.conf file.
Each line in the configuration file consists of a keyword and its parameters. White spaces in any place are ignored. Lines starting with
'#' are comments and are ignored.
The keywords currently recognized are:
label netmask precedence
The value is added to the label table used in the RFC 3484 sorting. If any label definition is present in the configuration file is
present, the default table is not used. All the label definitions of the default table which are to be maintained have to be dupli-
cated. Following the keyword, the line has to contain a network mask and a label value.
precedence netmask precedence
This keyword is similar to label, but instead the value is added to the precedence table as specified in RFC 3484. Once again, the
presence of a single precedence line in the configuration file causes the default table to not be used.
reload <yes|no>
This keyword controls whether a process checks whether the configuration file has been changed since the last time it was read. If
the value is "yes" the file is re-read. This might cause problems in multithreaded applications and is generally a bad idea. The
default is "no".
scopev4 mask value
Add another rule to the RFC 3484 scope table for IPv4 address. By default, the scope IDs described in section 3.2 in RFC 3438 are
used. Changing these defaults should hardly ever be necessary.
FILES
/etc/gai.conf
EXAMPLE
The default table according to RFC 3484 would be specified with the following configuration file:
label ::1/128 0
label ::/0 1
label 2002::/16 2
label ::/96 3
label ::ffff:0:0/96 4
precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 10
SEE ALSO
getaddrinfo(3), RFC 3484
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2013-02-13 GAI.CONF(5)