LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2012, 08:40 AM   #1
hex0r
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Post need help with my homework


Part A
Ques1. Write the ten shell commands which we have not studied in the class? Give the details of the commands.
Ques2. Give the details of the editor
a) Bluefish
b) NEdit
c) GNU nano
d) Vim
e) Kate
Give the working of the editors with the commands that are used.
Ques3. Users and groups are created either by command line of by using GUI. Discuss by giving the examples. Also write a shell script which creates a user and group. Add the user to the created group.
Ques4. Write the difference of programming in C under windows and programming in C under linux. Give in details the concept of the compiler used, Compilation etc.
Ques 5. What are the advantages of treating everything under the linux file system as files. How it helps the user to work with every hardware and file?
Part B
Ques6. Write a shell script which print the following pattern
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1

Ques7. Write a shell script to calculate the percentage of a student and then print accordingly the grades?


Ques8.
.
Create the following structure where rectangle are directories and round are files and do the following
a) Move E to directory
b) Rename G to I
c) Find the occurrence of abc in H
d) Delete A
e) Delete B in a single step

Ques9. Write a script to open the terminal file. The script should read and write from the terminal. Also show the effect of redirection and piping?

Que10. Write a shell script that find the smallest and the largest among three numbers. There should be the use of functions naming small to calculate the smallest and large to calculate the largest. The numbers should be passed at the run time
 
Old 02-03-2012, 08:57 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,920

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
welcome to LinuxQuestions.

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.
 
Old 02-03-2012, 09:46 AM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 2,757

Rep: Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767
You need to narrow down what you mean by "help."

Also, question 2 doesn't seem to be answerable. If I were in the class, I would ask for clarifications on that one.

Last edited by dugan; 02-03-2012 at 09:48 AM.
 
Old 02-03-2012, 09:50 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 241Reputation: 241Reputation: 241
Maybe it's the command that is used to start the editor
 
Old 02-03-2012, 10:06 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
Some references that may help:
http://www.grymoire.com/Unix/
http://www.tldp.org/LDP/abs/html/index.html
http://rute.2038bug.com/rute.html.gz

Also see the man pages.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:35 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration