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


  Search this Thread
Old 10-11-2003, 12:36 PM   #1
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.

Old 10-11-2003, 01:19 PM   #2
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, 02:28 PM   #3
Registered: Jun 2003
Distribution: Redhat
Posts: 87

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


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

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration