ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.