LinuxQuestions.org
Visit Jeremy's Blog.
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 10-11-2003, 01:36 PM   #1
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Rep: Reputation: 15
question about user/group & directory...


Hi I have questions:
1. If I want to check how many users are on my linux box(RH9.0) what command should I type?(commant promt ONLY please no GUI ). Same thing I want to do to check how many groups do I have on my Linux box what command should I type?

2. What command should I type If I want to add an user without home directory?
3. What command in Linux similar with cd.. in DOS? I tried cd.. in Linux box to move up to 1 level(ie. move from /home/folder1/sub to /home/folder1) and get no luck . I know if I type /path/to/directory will do that job but I want to find better ways.

Thanks
 
Old 10-11-2003, 02:19 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
1) Try something like:
grep -c "" /etc/passwd /etc/group
2) See the "-M" option for useradd:
man useradd
3) You need a space after cd - eg "cd .."
 
Old 10-11-2003, 03:28 PM   #3
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you. That help a lot.
 
  


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
User & group permission confusion A32 Linux - Newbie 12 08-31-2014 08:46 PM
user & group quota !! hitesh_linux Linux - General 1 11-14-2004 07:16 AM
Northern Maine BSD & Linux User Group php Linux User Groups (LUG) 0 05-23-2004 01:37 PM
Basic user:group question BroX Slackware 9 01-30-2004 07:15 AM
RH 9.0 user & group help...... hct224 Linux - Newbie 3 06-22-2003 12:52 PM


All times are GMT -5. The time now is 02:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration