LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 06-06-2010, 04:45 AM   #1
F4U57
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 0
Question Basic bash command help?!


Hi, I have my first prac exam for my Linux class in a couple of days and the majority is scripting. We can take notes in so if I have all of the script bash commands prior, then I'm set for the exam.

I am familiar with vi.

I need to know how to obtain the following information through bash commands. Any help would be greatly appreciated.

- display user files that have been backed up daily (so on the particular day the script is run)

- display groups that a particular user is a part of

- display those that are logged into the server at 5pm

- display the three largest files on the server

- display the default run level of the server

- display RPM's installed to the server since it was set up

- display any .mp3 files on the server

- make sure there is no word 'ship' in any of the files on the server

- display the last 10 lines of the Webserver error log

- display a listing of system Variables

- display a listing of the 5 most CPU intensive processes running on the server

- display a listing of the 5 most RAM intensive processes running on the server

- Make sure there are no new user accounts added to the server



I'm aware this is a big ask, I'm not sure how simple or difficult these bash commands are. I'm not after lengthy descriptions on how the commands function, just what bash command I would need to type into my script to get it to display the information asked.

Thank you in advance!!

Last edited by F4U57; 06-06-2010 at 04:46 AM.
 
Old 06-06-2010, 04:52 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

We won't do your homework/preparation for you here at LQ.

At least show us what you think the answers are and we will help you correct them (if needed).
 
Old 06-06-2010, 05:18 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

Please feel free to start a new thread which meets these guidelines.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another basic bash question Izarf Linux - Newbie 1 05-03-2009 05:56 PM
Basic Bash Script help mpmackenna Linux - Newbie 3 03-18-2009 10:23 AM
Basic bash script question kevpatts Linux - Newbie 3 10-12-2005 01:02 PM
Basic Bash script help valadamir Programming 2 12-01-2004 10:37 AM
help with basic syntax in bash script Supp0rtLinux Linux - Software 4 03-27-2003 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration