LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-18-2010, 06:44 PM   #16
Alican
LQ Newbie
 
Registered: May 2010
Location: Hungary
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0

I am trying them myself. When a command returns nothing I don't know if it worked or not. I assume I just used it in a wrong way but I can't know for sure. And yeah, have fun, I don't mind. I'm just desperate. I also have C programming and Discrete Math 2 exams tomorrow (7 hours left for the first one), I am going to get 100's in both, I just don't know much about the Linux stuff I wrote here. I am familiar with the basic commands since I used cygwin for some stuff 2 years ago. What I don't understand is would it kill you to just help to help. I'm not gonna explain my whole personal life here for this but the reason I don't know this stuff isn't that I enjoyed myself and neglected the class. Anyway, flame on, have fun.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-18-2010, 06:46 PM   #17
Alican
LQ Newbie
 
Registered: May 2010
Location: Hungary
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Andrew Benton View Post
Count how many users are not using bash as a login shell
Code:
awk -F ":" '!/bash/ { print $7 }' /etc/passwd | wc -l
Thank you very much!
This returned 29 for me, is this normal?
 
Old 05-18-2010, 07:21 PM   #18
Alican
LQ Newbie
 
Registered: May 2010
Location: Hungary
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
final answers

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"
7) cd
cd ..
tar -cf homearchive.tar home
ctrl+Z
fg
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

thanks to everyone who helped.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LPIC 101 exam ceritifation practise dump needed latest salimshahzad Linux - Newbie 3 04-27-2010 12:13 PM
Study material and exam engine required for redhat RHS333 exam sandeep singh Linux - Certification 3 07-18-2009 10:10 AM
How to get the RHCE Exam, online exam or at college. hocheetiong Linux - Certification 2 08-20-2007 06:24 PM


All times are GMT -5. The time now is 08:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration