The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
please help me regarding alias naree Shell Programming and Scripting 17 06-03-2008 04:14 AM
How to get the alias,when we have the IP. preethgideon UNIX for Dummies Questions & Answers 2 07-24-2007 02:53 PM
alias help shafique UNIX for Dummies Questions & Answers 5 10-03-2006 12:56 PM
alias klannon Filesystems, Disks and Memory 6 04-27-2006 08:36 AM
using alias... DebianJ UNIX for Advanced & Expert Users 2 05-12-2005 09:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2002
klannon klannon is offline
Registered User
  
 

Join Date: Mar 2002
Location: MA
Posts: 9
Alias

I'm trying to do the following:

Create an alias called whopw that will change directory to the /etc
directory and grep the password file for my username to return my password file entry.

One assumption: Once the alias works, I will be letting all of my friends copy and use it. In other words, the alias must locate their password entry when it is run by them without them having to make any changes to the alias.

I think the string 'who' could help solve my problem.

Any suggestions?
  #2 (permalink)  
Old 03-10-2002
Jimbo
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Do both a "who" and "whoami" to see if the output of either of those commands might help. Make sure you understand nesting a command inside another. Research running commands inside of parentheses, and what that does for you. And although you might not need it for this particular assignment, make sure you understand piping the output of a command into the next.

And finally, make sure you understand the rules of this forum regarding homework assignments. Good luck!
  #3 (permalink)  
Old 03-10-2002
mikek147 mikek147 is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 28
Try:

grep `whoami` /etc/passwd

-mk
Closed Thread

Bookmarks

« Wine | How to?? »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0