The UNIX and Linux Forums  

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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-20-2006
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.
Forum Sponsor
  #2  
Old 06-20-2006
vino's Avatar
Supporter (in vino veritas)
 

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

(6) Do not post classroom or homework problems.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0