Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

chfn(1) [redhat man page]

CHFN(1) 						      Linux Reference Manual							   CHFN(1)

NAME
chfn - change your finger information SYNOPSIS
chfn [ -f full-name ] [ -o office ] [ -p office-phone ] [ -h home-phone ] [ -u ] [ -v ] [ username ] DESCRIPTION
chfn is used to change your finger information. This information is stored in the /etc/passwd file, and is displayed by the finger pro- gram. The Linux finger command will display four pieces of information that can be changed by chfn : your real name, your work room and phone, and your home phone. COMMAND LINE Any of the four pieces of information can be specified on the command line. If no information is given on the command line, chfn enters interactive mode. INTERACTIVE MODE In interactive mode, chfn will prompt for each field. At a prompt, you can enter the new information, or just press return to leave the field unchanged. Enter the keyword "none" to make the field blank. OPTIONS
-f, --full-name Specify your real name. -o, --office Specify your office room number. -p, --office-phone Specify your office phone number. -h, --home-phone Specify your home phone number. -u, --help Print a usage message and exit. -v, --version Print version information and exit. SEE ALSO
finger(1), passwd(5) AUTHOR
Salvatore Valente <svalente@mit.edu> chfn October 13 1994 CHFN(1)

Check Out this Related Man Page

CHFN(1) 							   User Commands							   CHFN(1)

NAME
chfn - change your finger information SYNOPSIS
chfn [-f full-name] [-o office] ,RB [ -p office-phone] [-h home-phone] -u] [-v] [username] DESCRIPTION
chfn is used to change your finger information. This information is stored in the /etc/passwd file, and is displayed by the finger pro- gram. The Linux finger command will display four pieces of information that can be changed by chfn: your real name, your work room and phone, and your home phone. chfn is used to change local entries only. Use ypchfn, lchfn or any other implementation for non-local entries. COMMAND LINE Any of the four pieces of information can be specified on the command line. If no information is given on the command line, chfn enters interactive mode. INTERACTIVE MODE In interactive mode, chfn will prompt for each field. At a prompt, you can enter the new information, or just press return to leave the field unchanged. Enter the keyword "none" to make the field blank. OPTIONS
-f, --full-name full-name Specify your real name. -o, --office office Specify your office room number. -p, --office-phone office-phone Specify your office phone number. -h, --home-phone home-phone Specify your home phone number. -u, --help Print a usage message and exit. -v, --version Print version information and exit. EXIT STATUS
Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid. SEE ALSO
finger(1), passwd(5) AUTHOR
Salvatore Valente <svalente@mit.edu> AVAILABILITY
The chfn command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux July 2009 CHFN(1)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

finger a list from a file

I am trying to find a way of fingering the first field in a listfile created from the who command, and write the results to a new file eg "`who | cut -f1 -d' '` | more > tam" gives me the list I need but tam -f1 finger > tam2 does not produce the right results Thank you in advance... (7 Replies)
Discussion started by: SummitElse
7 Replies

2. Shell Programming and Scripting

awk script to split a file based on the condition

I have the file with the records like 4234234 US phone 3244234 US cup 2342342 CA phone 8947234 US phone 2389472 CA cup 2348972 US maps 3894234 CA phone I want the records with (US,phone) as record to be in one file, (Us, cup) in another file and (CA,cup) to be in another I mean all... (12 Replies)
Discussion started by: superprogrammer
12 Replies

3. UNIX for Dummies Questions & Answers

unix on windows

I am currently working as a summer intern at Cadence Design Systems in San Jose, CA, and have been learning unix/csh for the past week. The machine at the office has solaris installed, but at home, I (like most others) have Windows XP installed. Would it be possible to install any flavor of unix on... (6 Replies)
Discussion started by: rr112
6 Replies

4. UNIX for Advanced & Expert Users

finger command

Hello all, Here is what I am trying to do. If a user exist, then send an echo "EXIST" or else "DOES NOT EXIST". (under HP-UX) Kind of: #!/usr/bin/sh USER=mylogin finger $USER if $? = 0 then echo "EXIST"" else echo "DOES NOT EXIST" fi (10 Replies)
Discussion started by: qfwfq
10 Replies

5. HP-UX

user creation in 2nd server.

Dear frnds, I have 2 hp ux 11i servers(S1 & S2) in cluster. In S1 I created all the users. Is it necessary to create the same users one by one in S2 also ? pls help me. (7 Replies)
Discussion started by: jestinabel
7 Replies

6. UNIX for Dummies Questions & Answers

how extract certain value within a line using awk

hi if would like to get the phone number as an output, can you guide me here please <A>213444555</A><B><B>ABCDEFG</B> I just want to get the phone number from the file in between <A> and </A> Thanks (9 Replies)
Discussion started by: imran721
9 Replies

7. Shell Programming and Scripting

major help needed phone dir script need advancing

dam i stuck i am trying to write a script that is a basic phone book so i can enter a name or number or both into the scripts and by using positional paramiters the script will check if the name has a number in it and warn that numbers are not allowed with names, if i enter a number then... (6 Replies)
Discussion started by: zappedback
6 Replies

8. Shell Programming and Scripting

Assigning entire to a variable

Hi, Need help on the below topic. I am looping finger command and trying to get each line content into a variable. Output of finger command produces more than one line and each line was multiple words. for get_line in `finger` do echo "Finger Value: ${get_line}'" done The issue is... (9 Replies)
Discussion started by: vfrg
9 Replies

9. UNIX for Dummies Questions & Answers

Extracting specific info finger command

how to extract user machine name for current terminal using finger command below command gives machinename for all session , is it possible to filter it to only currernt terminal ? finger -b -p $LOGNAME | grep from (12 Replies)
Discussion started by: lalitpct
12 Replies

10. UNIX for Dummies Questions & Answers

Pausing and resuming process on laptop

Hi, I'm wondering if it's possible to pause a process I'm running in the background, close my laptop (I need to leave the office), and continue the process (when I get home). I've been running a process for a really long time and I don't want to have to start it over. Thanks in advance! (9 Replies)
Discussion started by: ShiGua
9 Replies

11. IP Networking

How do I change my IP via terminal?

Hi, guys, I was using an online utility to check wheather or not an email existed, and they gave me three tries. I thought clearing temp and cookies would work, but it looks like they grabbed a hold of my IP. :mad: Now, I'd like to make a shell script that changes my IP. Not bad...yet. I'm using... (7 Replies)
Discussion started by: Ihatewindows
7 Replies

12. Shell Programming and Scripting

Editing phone number with multiple delimiters

Hello all I have a data base of information that is formatted like so: JSD4863 XXX-XX-XXXX DOE, JOHN C JR-II BISS CPSC BS INFO TECH 412/779-9445 I need the last four digits of the phone number. However, many lines contain 'garbage data' that I'm not interested in. So i used a 'for loop'... (7 Replies)
Discussion started by: smartSometimes
7 Replies

13. UNIX for Dummies Questions & Answers

Using finger in a loop

Hi, I have taken all active user list and passing it to below code for i in $(cat sample.out) do finger ${usr}> report.txt done I got below O/P Login Name TTY Idle When Where de4s1 john console 111d Fri 03:00 efr56 ... (21 Replies)
Discussion started by: stew
21 Replies

14. Linux

Office installation on Linux without root access

Need Assistance in finding office open source for REDHAT linux. Need to be compiled as non-root user . If possible I also need instructions for installation. (6 Replies)
Discussion started by: ajayram_arya
6 Replies

15. UNIX for Beginners Questions & Answers

Shell command to transpose Row & Column

Hi all, need a help with getting a one line command to do the following. i have an input file with rows of data containing credits for each office, the output should be one row for each office with all the credits in rows for that office, if its not there then it should say N/A. the credits are... (10 Replies)
Discussion started by: tech_frk
10 Replies