Linux - NewbieThis 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
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.
1- Write a script called lsh to display a message giving the number of hidden files in the current directory and then display the hidden files.
2- Write a script called whoon that will display a message stating the number of users currently logged on and then list those users (in columns). (Note to do this in columns, you will need to use utilities that we have not discussed. Do a listing on the /bin directory to see the available utilities and then use the man pages to see what some of the utilities do.) Also note that each user logged in must only be counted once, no matter how many times they are logged in. It is best to secure shell to apollo to do this exercise.
Last edited by schranky54; 04-18-2006 at 10:52 AM.
1- Write a script called lsh to display a message giving the number of hidden files in the current directory and then display the hidden files.
2- Write a script called whoon that will display a message stating the number of users currently logged on and then list those users (in columns). (Note to do this in columns, you will need to use utilities that we have not discussed. Do a listing on the /bin directory to see the available utilities and then use the man pages to see what some of the utilities do.) Also note that each user logged in must only be counted once, no matter how many times they are logged in. It is best to secure shell to apollo to do this exercise.
lol, homework "Also note that each user logged in must only be counted once, no matter how many times they are logged in. It is best to secure shell to apollo to do this exercise."
It's against the rules.
If you're doing an exercise in some self help tutorial, people telling you defeats the purpose.
1- Write a script called lsh to display a message giving the number of hidden files in the current directory and then display the hidden files.
2- Write a script called whoon that will display a message stating the number of users currently logged on and then list those users (in columns). (Note to do this in columns, you will need to use utilities that we have not discussed. Do a listing on the /bin directory to see the available utilities and then use the man pages to see what some of the utilities do.) Also note that each user logged in must only be counted once, no matter how many times they are logged in. It is best to secure shell to apollo to do this exercise.
2
Homework!!!
1. Against the rules
2. Pretty transparent when you just paste in the instructor's words....
While learning Linux (presumably to enter the job market), you will also want to learn English. You can write good scripts, or you can write scripts WELL.
good=adjective
well=adverb
While learning Linux (presumably to enter the job market), you will also want to learn English. You can write good scripts, or you can write scripts WELL.
good=adjective
well=adverb
While learning Linux (presumably to enter the job market), you will also want to learn English. You can write good scripts, or you can write scripts WELL.
good=adjective
well=adverb
That's a bit insensitive, as these are international forums; English might not be the OP's native language.
Edit: I noticed this is a homework assignment. That is explicitly against the rules of this forum.
That's a bit insensitive, as these are international forums; English might not be the OP's native language.
Normally, I practice extreme tolerance. However, when someone is so egregious as to paste in the instructor's words, then they are likely to get zinged. Further, I am learning to distinguish ESL from simply "ain't lerned da eglish" I put the OP in the latter group.
Finally, **extensive studies** indicate that this person is a "one-poster" and will not be heard from again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.