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
LPI Level 1 Exam 101 (RPM) zazzybob What's on Your Mind? 5 02-11-2009 10:22 AM
HP-UX CSA Exam qfwfq UNIX for Advanced & Expert Users 1 08-15-2007 01:04 PM
Sun Certified Solaris 8 Exam CollenM SUN Solaris 4 01-09-2007 05:54 PM
Advice - Solaris 9 Exam 310-014 & 310-015 frustrated1 SUN Solaris 3 05-06-2004 04:56 AM
Where can I get a sample Solaris exam and a job Youngadmin UNIX for Advanced & Expert Users 2 01-18-2002 04:48 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 06-20-2006
mhos_mhos mhos_mhos is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 1
HELP for Simple exam

Can you help me to know the commands for these problems?

1. Count the no. of users that are currently logged into the system.

2. Count the no. of lines in /etc/passwd that contains the pattern home.

3. Modify Question #2 so that you save all entries from /etc/passwd that contain the pattern home to a file called all.users before passing the output to be counted.

4. Sort the contents of the names file found under your home directory and display the sorted output in three-column format.

5. Create an alias whoson that displays the users currently logged into the system in alphabetical order.

6. Capture the user name, user id, and HOME directory of every user.

7. Modify Question #6 so that it sorts the list of user accounts by UID instead of user name.

8. Using input redirection, mail the file date.out to yourself.

9. Create two very short files called f1 and f2 using cat and output redirection.

10. Sort the file /etc/passwd on the third field. what happens?

Thank you...



7.
  #2 (permalink)  
Old 06-20-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
From Rules

(6) Do not post classroom or homework problems.
Closed Thread

Bookmarks

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 12:04 AM.


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