I am writing a program that need to be run on several machines. I am running UNIX and wanted to know if there is a command similar to ipconfig (in DOS) that would return the IP Address of the machine that I am working on. (Not just the loopback address of 127.0.0.1). (1 Reply)
Hi,
I have the following requirement.
I want to configure in the .profile file of my user id in such a way that it loads a particular set of command when i log in from a particular machine and another set when i log into the server from a different machine.
What is the command to get the... (1 Reply)
Hi all,
How can I check if a particular user id belongs to a group?
(ie. how to check if the current user `whoami` is part of the a certain group? do i use the group name of group id?)
Thanks in advance (2 Replies)
Using either
% nslookup www.computerhope.com
or
% host www.computerhope.com
Is there a way to single out only the IP address and not all the other information that these commands return by using the options or something of this nature.
For Example I would like to do this
Echo... (1 Reply)
Hi all,
I have a file with X number of lines.
Somewhere within each line will be an email address following the format:
<telephone_number>@domain.net
Each line is not a set length and there are no delimiters to work with.
I want to write a script that extracts the telephone number... (3 Replies)
Hello everyone,
I have this code which prints the address of the object of a class....bt. what if I want to print the address of the class?
#include <iostream.h>
class har{
};
int main()
{
har a;
cout<<(&a);
}
I would really appreciate if someone can help!
Thanks!!!!! (1 Reply)
I have setup a group quota for better disk usage.
What i am doing is to setup a quota with Samba share. I created user1,user2 and group project1 which belongs to /home/project1 dir. Quota is implemented on project1 group to write 100 MB on this share and This is working fine if a user1 and user2... (3 Replies)
there are about 300 objectivec .m files and I need to print each file name and its method and number of lines inside the method
there is a sample perl files that do perl brace matching... (0 Replies)
Discussion started by: steve32001
0 Replies
LEARN ABOUT DEBIAN
arithmetic
ARITHMETIC(6) BSD Games Manual ARITHMETIC(6)NAME
arithmetic -- quiz on simple arithmetic
SYNOPSIS
arithmetic [-o +-x/] [-r range]
DESCRIPTION
arithmetic asks you to solve problems in simple arithmetic. Each question must be answered correctly before going on to the next. After
every 20 problems, it prints the score so far and the time taken. You can quit at any time by typing the interrupt or end-of-file character.
The options are as follows:
-o By default, arithmetic asks questions on addition of numbers from 0 to 10, and corresponding subtraction. By supplying one or more
of the characters +-x/, you can ask for problems in addition, subtraction, multiplication, and division, respectively. If you give
one of these characters more than once, that kind of problem will be asked correspondingly more often.
-r If a range is supplied, arithmetic selects the numbers in its problems in the following way. For addition and multiplication, the
numbers to be added or multiplied are between 0 and range, inclusive. For subtraction and division, both the required result and the
number to divide by or subtract will be between 0 and range. (Of course, arithmetic will not ask you to divide by 0.) The default
range is 10.
When you get a problem wrong, arithmetic will remember the numbers involved, and will tend to select those numbers more often than others, in
problems of the same sort. Eventually it will forgive and forget.
arithmetic cannot be persuaded to tell you the right answer. You must work it out for yourself.
DIAGNOSTICS
``What?'' if you get a question wrong. ``Right!'' if you get it right. ``Please type a number.'' if arithmetic doesn't understand what you
typed.
SEE ALSO bc(1), dc(1)BSD May 31, 1993 BSD