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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Edit: Could you guys verify the answers I come up with?
Here are the questions, thanks in advance.
1- Count how many users are logged in currently. One user counts only once.
2- Count how many users are not using bash as a login shell
3- List all of the users whose login names contain “all” in them.
4- List all the symbolic links’ names in the current directory.
5- Count how many users are celebrating his name day at 6th of December (Santa Claus in Hungarian is Miklos)
6- Remove all files named “Core” and “core” from your home directory.
7- Start the archiving process of your home directory. Suspend the process and put it into the background. How can you get it back to the foreground?
8- Remove the comment from the .bash_rc file and create a new version as .bash_rc.new
9- How can you create a symbolic link?
10- List the content of the actual directory using ctime as sorting key and show only the first four entries.
1) users | wc -l
2) cat /etc/passwd | grep -v \/bin\/bash | wc -l
3) cat /etc/passwd | cut -d ":" -f1 | grep all
4) ls --file-type | grep @ OR find . -xtype l
5) cat /etc/passwd | cut -d ":" -f1 | grep Miklos (I'm not sure)
6) cd ~ && rm [cC]ore OR find ~ -type f | grep -e "[C|c]ore"
tar -cf homearchive.tar home
8) sed '/^\#/d' .bash_rc > .bash_rc.new
9) 9) ln -s [src_file] [link_name]
10) ls -al --sort=time | head -n5 | tail -n4
Last edited by Alican; 05-18-2010 at 07:45 PM.
Click here to see the post LQ members have rated as the most helpful post in this thread.