List Users
I've tried using the command "cd /etc/passwd" but it says no directory. I then went into /etc and then listed the directories and saw the /passwd directory but still unable to get into it. So, what else can i do to list all users?
|
Quote:
HTH's Glenn |
Well, apparently you didn't read my post. I've tried those commands and it says no directory named passwd. Now what?
|
Quote:
Quote:
|
Also, there is no /etc/passwd directory. That's a file, so the cd command will fail on it. If you cat that file out, you can see the users in it
|
@ProfessorHicks
If you have difficulty in finding out whether something is a file or directory, you can use 'ls -l', and check its first bit: '-'is a regular file 'd' is a directory There are total 7 types of files: 1. Regular file(-) 2. Directory files(d) 3. Block file(b) 4. Character device file(c) 5. Named pipe file or just a pipe file(p) 6. Symbolic link file(l) 7. Socket file(s) More: File types in Linux Explained |
Hi ProfessorHicks,
could be useful this link to learn some simple things about linux ;) Don't see it as "lost time". Learn a new thing is always a benefit. |
anyway, best of luck!
|
All times are GMT -5. The time now is 03:40 PM. |