HELP for Simple exam


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers HELP for Simple exam
# 1  
Old 06-20-2006
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  
Old 06-20-2006
From Rules

(6) Do not post classroom or homework problems.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

My Exam Question

Hello My friends, This is my new Thread and i am so newbie about Bash/shell code. My first exam question is : there is a file (name is also File) and this file has 2 letters and 1 number. And number is in the middle. like this a 2 c I have to show only number on screen. And i did like... (1 Reply)
Discussion started by: Darthy
1 Replies

2. What is on Your Mind?

RHCSA exam

Hi All, I plan to appear for a RHCSA certification and am confused a bit. I am trying to register on the RedHat site for the EX200 exam and am taken to this page Red Hat Certified System Administrator (RHCSA) exam - EX200 | Red Hat It says this involves training too. But I am not... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

3. Solaris

Question about exam

Hello guys I hope you well and in great health, i wonder if i want to get Solaris 11 (1z0-821) exam i've to talk a course in oracle or i can just register for the exam and take it. thanks. (1 Reply)
Discussion started by: mohamed91
1 Replies

4. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

5. Homework & Coursework Questions

Exam Study - 2007.

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Im unsure how the MakeFile works any help would be great. This is a past exam that was held at the uni 2007. So... (0 Replies)
Discussion started by: syco__
0 Replies

6. Solaris

Solaris 10 exam preparation

Dear all, Can i have solaris 10 exam dumps? Thanks in advance:confused: Rgds | P.Bharathiraja. (5 Replies)
Discussion started by: bharathiraja
5 Replies

7. UNIX for Advanced & Expert Users

HP-UX CSA Exam

Hey All, I have bought some paper from the net... let's say in PDF format. They are some questions from that paper that says Explanation: pending. Send your suggestion tofeedback*****king.com ... anyway. Here are the questions. I have made my choice but would like to know your opinion. 1. The... (1 Reply)
Discussion started by: qfwfq
1 Replies

8. Linux

Best book for RHCE exam

i want to know some of the good books for RHCE Exam.....can anybody help.. thnx in advance :) (0 Replies)
Discussion started by: Amardeep
0 Replies
Login or Register to Ask a Question