LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  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: 25,753

Rep: Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930
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
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
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: 244Reputation: 244Reputation: 244
Maybe it's the command that is used to start the editor
 
Old 02-03-2012, 10:06 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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



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



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:38 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